How to edit MAT file in Mac?

6 Ansichten (letzte 30 Tage)
Yeji Jang
Yeji Jang am 20 Mär. 2020
Bearbeitet: Yeji Jang am 20 Mär. 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!:)

Akzeptierte Antwort

Sriram Tadavarty
Sriram Tadavarty am 20 Mär. 2020
Bearbeitet: Sriram Tadavarty am 20 Mär. 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

Weitere Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by