Edit and save MAT file

3 次查看(过去 30 天)
JM
JM 2011-7-29
Hello, I have a script that loads a MAT file into the workspace and changes some fields of a struct in the MAT file. After that, I want the script to save the MAT file with the edited struct in it(not create a new file). How do I do this?

采纳的回答

Walter Roberson
Walter Roberson 2011-7-30
save('YouOldFileName.mat', 'YourStructureVariableName','-append')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by