how i can overcome this problem about the command save ?

Réponses (3)

per isakson
per isakson le 24 Fév 2015
Modifié(e) : per isakson le 24 Fév 2015
You try to save to C:\Program Files\MATLAB\R2012b\bin, which explains the error message.
Proposal
save( 'c:\folder_with_write_permission\ABC.mat' )
or change current folder to a folder with write permission
Image Analyst
Image Analyst le 24 Fév 2015

1 vote

You can't save anything under the c:\Program Files folder or subfolders of it. That's just Windows' rule. Save it someplace else where you do have permission to save it.
I would create a specific .mat file and save to it instead:
save ABC.mat
to save everything in your workspace, or to save only those variables:
save ABC.mat A B C
See the documentation on save for details.

Catégories

En savoir plus sur File Operations dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by