How do I save in MATLAB?
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. Variables that cannot be saved to a script are saved to a MAT-file with the same name as that of the script.
Where does MATLAB save?
By default, MATLAB adds the userpath folder to the search path at startup. This folder is a convenient place for storing files that you use with MATLAB. The default userpath folder is platform-specific. Windows® platforms — %USERPROFILE%/Documents/MATLAB .
How to use Savefig in MATLAB?
To save the current figure, specify fig as gcf . saveas( fig , filename , formattype ) creates the file using the specified file format, formattype .