Matlab:Saving and Publishing<br />
Saving variables<br />save 	stores all variables from the current MATLAB workspace in a MATLAB formatted file (MAT-file) n...
Saving variables<br />Command format:<br />save myfile.mat    firstnamelastname<br />Function format:<br />save(&apos;myfi...
Saving Images<br />imsave 	creates a Save Image tool in a separate figure that is associated with the image in the current...
Saving Images<br />
Publishing animations<br />For converting an MATLAB animation movie file into Audio Video Interleaved format (AVI), the ‘m...
Publishing animations<br />Creating an AVI file: <br /><ul><li>Create an AVI file object, using the avifile function.
aviobj = avifile('mymovie.avi','fps',5);
Upcoming SlideShare
Loading in...5
×

Matlab: Saving And Publishing

393

Published on

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
393
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Matlab: Saving And Publishing"

  1. 1. Matlab:Saving and Publishing<br />
  2. 2. Saving variables<br />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.<br />save filename stores all variables in the current workspace in the file filename.<br />save filename content stores only those variables specified by content in file filename.<br />
  3. 3. Saving variables<br />Command format:<br />save myfile.mat firstnamelastname<br />Function format:<br />save(&apos;myfile.mat&apos;, &apos;firstname&apos;, &apos;lastname&apos;) <br />
  4. 4. Saving Images<br />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.<br />
  5. 5. Saving Images<br />
  6. 6. Publishing animations<br />For converting an MATLAB animation movie file into Audio Video Interleaved format (AVI), the ‘movie2avi’ function can be used. <br />
  7. 7. Publishing animations<br />Creating an AVI file: <br /><ul><li>Create an AVI file object, using the avifile function.
  8. 8. aviobj = avifile('mymovie.avi','fps',5);
  9. 9. Capture the sequence of graphs and put them into the AVI file, using the addframe() function.
  10. 10. for k=1:25
  11. 11. h = plot(fft(eye(k+16)));
  12. 12. axis equal; frame = getframe(gca);
  13. 13. aviobj = addframe(aviobj,frame);
  14. 14. end</li></li></ul><li>Visit more self help tutorials<br />Pick a tutorial of your choice and browse through it at your own pace.<br />The tutorials section is free, self-guiding and will not involve any additional support.<br />Visit us at www.dataminingtools.net<br />

×