How to edit MAT file in Mac?

1 visualización (últimos 30 días)
Yeji Jang
Yeji Jang el 20 de Mzo. de 2020
Editada: Yeji Jang el 20 de Mzo. de 2020
Hello, I'm new in using MATLAB! I tried to edit and load the '.mat' file in MATLAB in my Mac.
As I typed
load('file.mat')
it seemed that it successfully loaded the file because the variables were updated in workspace.
However, as I typed
edit 'file.mat'
the file in editor were destroyed.
Is it impossible to edit MAT file in mac?
How can I edit it in mac?
Please help me!
Thank you for reading!:)

Respuesta aceptada

Sriram Tadavarty
Sriram Tadavarty el 20 de Mzo. de 2020
Editada: Sriram Tadavarty el 20 de Mzo. de 2020
Hi Yeji,
You can't directly edit the mat files in MATLAB. Instead you can load the mat files, update the workspace variables and then save it. This way you can get the updated mat file.
Hope this helps.
Regards,
Sriram

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