Edit and save MAT file

3 visualizaciones (últimos 30 días)
JM
JM el 29 de Jul. de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Jul. de 2011
save('YouOldFileName.mat', 'YourStructureVariableName','-append')
  1 comentario
JM
JM el 1 de Ag. de 2011
Yep that works, thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by