Edit and save MAT file

조회 수: 28 (최근 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')
  댓글 수: 1
JM
JM 2011년 8월 1일
Yep that works, thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (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