2. Saving variables save stores all variables from the current MATLAB workspace in a MATLAB formatted file (MAT-file) named matlab.mat that resides in the current working directory. save filename stores all variables in the current workspace in the file filename. save filename content stores only those variables specified by content in file filename.
3. Saving variables Command format: save myfile.mat firstnamelastname Function format: save('myfile.mat', 'firstname', 'lastname')
4. Saving Images imsave creates a Save Image tool in a separate figure that is associated with the image in the current figure, called the target image. The Save Image tool displays an interactive file chooser dialog box (shown below) in which you can specify a path and filename.
6. Publishing animations For converting an MATLAB animation movie file into Audio Video Interleaved format (AVI), the ‘movie2avi’ function can be used.