How to edit MAT file in Mac?

1 次查看(过去 30 天)
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!:)

采纳的回答

Sriram Tadavarty
Sriram Tadavarty 2020-3-20
编辑:Sriram Tadavarty 2020-3-20
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by