• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Matlab: Saving And Publishing
 

Matlab: Saving And Publishing

on

  • 735 views

Matlab: Saving And Publishing

Matlab: Saving And Publishing

Statistics

Views

Total Views
735
Views on SlideShare
721
Embed Views
14

Actions

Likes
0
Downloads
0
Comments
0

3 Embeds 14

http://www.dataminingtools.net 9
http://dataminingtools.net 4
http://www.slideshare.net 1

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Matlab: Saving And Publishing Matlab: Saving And Publishing Presentation Transcript

    • Matlab:Saving and Publishing
    • 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.
    • Saving variables
      Command format:
      save myfile.mat firstnamelastname
      Function format:
      save('myfile.mat', 'firstname', 'lastname')
    • 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.
    • Saving Images
    • Publishing animations
      For converting an MATLAB animation movie file into Audio Video Interleaved format (AVI), the ‘movie2avi’ function can be used.
    • Publishing animations
      Creating an AVI file:
      • Create an AVI file object, using the avifile function.
      • aviobj = avifile('mymovie.avi','fps',5);
      • Capture the sequence of graphs and put them into the AVI file, using the addframe() function.
      • for k=1:25
      • h = plot(fft(eye(k+16)));
      • axis equal; frame = getframe(gca);
      • aviobj = addframe(aviobj,frame);
      • 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