Navigate to some folder where you have write permissions desktop or some documents folder and try to save your file it should work fine.
Save not saving mat file.
Diary filename saves all the text input in the command window to a text file.
If filename has no extension that is no period followed by text and the value of format is not specified then matlab appends mat.
If i try and use a back up file for quickens it says file must be saved when i try to save it i get c users bruce.
Ms windows will not allow you to save inside of program files unless you are running with administrator permission.
If you have to have to save it in the program files folder then launch matlab as an administrator if you have the permissions by right click matlab icon and launch as admin.
You must have permission to write to the file.
Check the contents of the file with the whos function.
Name of the mat file mat extension not needed if appendmat true.
Save the fields of structure s1 as individual variables.
Hgsave saves figures to files fig by default.
Save saves data to files mat by default not true in octave 4 files have no extension uisave includes user interface.
To save variables to a matlab script click the save workspace button or select the save as option and in the save as window set the save as type option to matlab script.
Parameters file name str or file like object.
In order to save your data to a mat file with version 7 3 or later specify the v7 3 flag as the version input argument.
Contact the administrator to obtain permission.
If i try and save an excel file i get c users bruce documents book1 xlsx you don t have permission to save in this location.
If filename does not include a full path matlab saves to the current folder.
Would you like to save in documents folder instead.
Variables that cannot be saved to a script are saved to a mat file with the same name as that of the script.
Clear the workspace and load the contents of a single field.
If you do not specify filename the save function saves to a file named matlab mat.
Save a dictionary of names and arrays into a matlab style mat file.
It sounds as if you are not in the directory you think you are or possibly you are attempting to save somewhere under the program files directory such as inside one of the matlab installation directories.
The save variables to version 7 3 mat file example on that page shows the exact syntax.
There are many ways to save to files in octave.
This saves the array objects in the given dictionary to a matlab style mat file.