How to edit MAT file in Mac?

6 vues (au cours des 30 derniers jours)
Yeji Jang
Yeji Jang le 20 Mar 2020
Modifié(e) : Yeji Jang le 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!:)

Réponse acceptée

Sriram Tadavarty
Sriram Tadavarty le 20 Mar 2020
Modifié(e) : Sriram Tadavarty le 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
  1 commentaire
Yeji Jang
Yeji Jang le 20 Mar 2020
Thanks for your answer!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by