Save and Export Graphics

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Export Static Plots

To save the resulting plots separately from a notebook:

  1. Double-click the plot you want to export. Select File>Export Graphics from the main menu or right-click to use the context menu.

  2. Click Next in the Graphics Export Guide dialog box.

  3. Select the file format to which you want to export the image.

  4. The next steps depend on the file format you selected. Follow the instructions in the Export Graphics dialog box.

Choose the Export Format

The appearance of your exported graphics, its quality, and compatibility with other documents depend on the file format you select for saving graphics. The set of file formats available for exporting graphics from a MuPAD® notebook could be limited by your operating system and by the type of image.

Vector Formats

You can save an image as a set of vector objects such as lines and geometric figures. Images in vector formats are resolution independent and scale almost without quality loss. These images can look different on different computers. MuPAD supports the following vector graphics formats:

  • XVC/XVZ — the MuPAD native format. You can import the images saved in this format into a notebook and activate and manipulate them with the MuPAD notebook graphic tools.

  • JVX/JVD — JavaView. Java® based format for 2-D and 3-D images that you can embed into HTML Web pages. Exporting an animation to JavaView, you can choose to export the current view or a sequence of images.

  • EPS — Encapsulated PostScript®. Standard format for publishing images in scientific articles and books. This format serves best for 2-D images. 3-D images are exported as raster images embedded in EPS, and, therefore, can loose quality. You cannot export animations to this format.

  • SVG — Scalable Vector Graphics. The format serves for including vector graphics and animations on Web pages. MuPAD does not support svg animations. You can only export the current view of an animation in this format. You cannot export 3-D images to this format.

  • WMF — Windows® Metafile. You can use this file format on Windows operating platforms only.

  • PDF — Portable Document Format. You can use this format to export non-animated 2-D images.

Bitmap Formats

Bitmap formats save an image pixel by pixel allowing the image to look identical on different computers. To save images in bitmap format, you need to select the image resolution. The quality of images saved in bitmap formats depend on the resolution and can be decreased if you scale an image after saving. MuPAD supports the following bitmap graphics formats:

  • PNG

  • GIF

  • BMP

  • JPEG

Save Animations

You can export an animation created in MuPAD into an animated GIF file. If you use a Windows systems, you can export an animation created in MuPAD into the special format AVI . To save an animation in this format, select a compressor from the list of compressors available for your animation and operating system.

A compressor defines the size of the exported animation and the quality of images in the animation. Viewing the exported animation requires the installation of an appropriate compressor.

Export Sequence of Static Images

You can export an animation as a sequence of static images. For example, the following calculations result in an animated plot:

plot( plot::Function2d( sin(x) ), 
      plot::Point2d( [x, sin(x)], x=-5..5 ), 
      plot::Line2d( [x,-1], [x,1], x=-5..5, LineStyle=Dashed),
      plot::Line2d( [-5,sin(x)], [5,sin(x)],
                  x=-5..5, LineStyle=Dashed)

To export the resulting plot:

  1. Select File>Export Graphics from the main menu or right-click to use the context menu.

  2. Click Next in the Graphics Export Guide dialog box.

  3. Select Export whole animation sequence and click Next.

  4. Select the format for saving images of the sequence and the file name. A sequence of numbers automatically appends to the file name you enter. For example, when you enter image.jvx, you get the following sequence of files: image.1.jvx, image.2.jvx, and so on. This sequence of file names displays below the entry field for the file name.

  5. Select the number of frames per second. This number defines the total number of image files you create.