Edit and save MAT file

3 visualizzazioni (ultimi 30 giorni)
JM
JM il 29 Lug 2011
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by