Edit and save MAT file

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일

0 개 추천

save('YouOldFileName.mat', 'YourStructureVariableName','-append')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

질문:

JM
2011년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by