matlab - 如何将变量附加到 .mat 文件?

标签 matlab variables save

如果我已经有了一个包含变量 xy.mat 文件,有没有办法使用 save 命令将另一个变量 z 添加到 .mat 文件,而无需显式声明变量 xy 在保存命令中?

最佳答案

如果您查看 save() function documentation ,有一种保存命令的形式可能会有所帮助:

save(filename, ..., '-append')

此表单的帮助说明:

save(filename, ..., '-append') adds new variables to an existing file. You can specify the '-append' option with additional inputs such as variables, '-struct' , format, or version.

关于matlab - 如何将变量附加到 .mat 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8509315/

相关文章:

python - 传递并使用 FlaskForm (WTForms) 内的变量

tensorflow - tensorflow 中有哪些 Assets ?

php - Macroable.php 第 74 行 : Method save does not exist. Laravel 5.2 中的 BadMethodCallException

winforms - winform 的应用程序设置 : cannot save application settings which has been added during the run time

matlab - 通过命令关闭变量编辑器

testing - Matlab 无限测试

matlab - 使用控制点扭曲图像

java - 如何显示变量的值? - 安卓

C 不会将数据放在变量数组中

matlab - 在多个图像上进行特征匹配