MAT file

1 次查看(过去 30 天)
Sivakumaran Chandrasekaran
How to edit a mat file
  1 个评论
TAB
TAB 2012-4-3
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

请先登录,再进行评论。

回答(1 个)

Jonathan Sullivan
What do you want to edit? Do you want to change a variable? Add a variable? Assuming it's the latter, you could just use the -append flag.
For example
x = rand(100,1);
save('MyData.mat','x'); % initial save
y = rand(100,1);
save('MyData.mat','y','-append'); % add a variable

类别

Help CenterFile Exchange 中查找有关 Standard File Formats 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by