how i can overcome this problem about the command save ?
Show older comments
Answers (3)
per isakson
on 24 Feb 2015
Edited: per isakson
on 24 Feb 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
on 24 Feb 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.
Star Strider
on 24 Feb 2015
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.
Categories
Find more on File Operations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!