如何写入.mat文件Matlab [英] how to write to .mat file matlab

查看:357
本文介绍了如何写入.mat文件Matlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的文件夹中有几个.mat文件.我想给他们每个人写几个变量,字符串,它们是我自己在程序执行过程中指定的.如何从matlab编写并将这些字符串保存到.mat?

I have a couple of .mat files in my folder. I want to write to each of them a couple of variables, strings, specified by myself during execution of this program. How can I write from matlab and save these strings to .mat ?

推荐答案

保存时,可以使用-append标志附加.mat文件.如果您要附加到文件的变量名已存在于文件中,则它将被该命令覆盖.

You can append the .mat files using the -append flag when saving. If the variable name you are trying to append to the file already exists in the file, it will overwritten with this command.

例如.

>> save <your .mat filename> <your variables> -append

这篇关于如何写入.mat文件Matlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆