How to edit MAT file in Mac?

1 view (last 30 days)
Yeji Jang
Yeji Jang on 20 Mar 2020
Edited: Yeji Jang on 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!:)

Accepted Answer

Sriram Tadavarty
Sriram Tadavarty on 20 Mar 2020
Edited: Sriram Tadavarty on 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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!