How to edit MAT file in Mac?

1 visualizzazione (ultimi 30 giorni)
Yeji Jang
Yeji Jang il 20 Mar 2020
Modificato: Yeji Jang il 20 Mar 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!:)

Risposta accettata

Sriram Tadavarty
Sriram Tadavarty il 20 Mar 2020
Modificato: Sriram Tadavarty il 20 Mar 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

Più risposte (0)

Categorie

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

Community Treasure Hunt

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

Start Hunting!

Translated by