Your SlideShare is downloading. ×
  • Like
  • Save
Matlab: Saving And Publishing
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Matlab: Saving And Publishing


Matlab: Saving And Publishing

Matlab: Saving And Publishing

Published in Technology , Art & Photos
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Matlab:Saving and Publishing
  • 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.
  • 5. Saving Images
  • 6. Publishing animations
    For converting an MATLAB animation movie file into Audio Video Interleaved format (AVI), the ‘movie2avi’ function can be used.
  • 7. Publishing animations
    Creating an AVI file:
    • Create an AVI file object, using the avifile function.
    • 8. aviobj = avifile('mymovie.avi','fps',5);
    • 9. Capture the sequence of graphs and put them into the AVI file, using the addframe() function.
    • 10. for k=1:25
    • 11. h = plot(fft(eye(k+16)));
    • 12. axis equal; frame = getframe(gca);
    • 13. aviobj = addframe(aviobj,frame);
    • 14. end
  • Visit more self help tutorials
    Pick a tutorial of your choice and browse through it at your own pace.
    The tutorials section is free, self-guiding and will not involve any additional support.
    Visit us at