Saving file issue while trying to add variables
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I was trying to add some variables to an existing .mat file, however the new variables were not added when I run all the script, but if I choose Run and Advance the variables are saved ok, even if I run the single line in the Command window that seems to be causing the issue everything is ok. Hope you can give me your advise.
filename = 'FJC_ISBe5_FJC_FC2772_Inactive_Fault';
mysave = [d,'\' ,filename];%%Save in this directory with this name
save(mysave,'-struct','p');%%Save from p variable
%%
% tic;pause(10);toc;%% I add this pause thinking this could solve but didn't work
save(filename,'Active_Faults','Inactive_Faults','-append');%Add variables to existing file
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!