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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Matlab: Saving And Publishing

377

Published on

Matlab: Saving And Publishing

Matlab: Saving And Publishing

Published in: Technology, Art & Photos
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
377
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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 www.dataminingtools.net

×