MuPAD® notebooks are not recommended. 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.
Before printing a notebook that displays long lines in the input or output regions or wide graphics that might not fit the page, use the Print Preview window to see how the document will look when printed. The dialog box lets you view and fix page layout problems, print your document, or save it to PDF format. Previewing documents before you print them helps to avoid printing unnecessary pages and thereby reduces paper waste.
To see how the document looks when printed, select File > Print Preview. Alternatively, press Alt+F+V to open Print Preview.
Print Preview uses the properties of your current printer. If you print the document using any other printer or save it to PDF format, the result can differ from what you see in the Print Preview window.
To close Print Preview, click the Close button on the Print Preview toolbar.
Suppose, you like the way your document appears in the Print Preview window and want to print the document. To print a document directly from Print Preview, click the Print button on the Print Preview toolbar.
When you print directly from Print Preview, you can select and print specific pages. To print a particular page:
Open Print Preview.
Click the Print button in the Print Preview toolbar.
In the resulting dialog box, click the Pages option under Page Range.
Type the number of the page you want to print. To specify a range of pages, use a hyphen. For example, to print the second, third, and fourth pages, type 2-4.
If your document is wide and does not fit the page, use the Print Preview toolbar to adjust the document before printing. When you print a wide document from the Print Preview window, MuPAD® does not prompt you to scale your document down. MuPAD prints documents exactly as you see them in the Print Preview window.
If you like how your document appears in the Print Preview window, you can save it to PDF format without leaving Print Preview. To save a document as a PDF from the Print Preview window, click the Save as PDF button on the Print Preview toolbar.
PDF files created with the Save as PDF button are not editable. To create editable PDF files, click the Print button and try using a PDF printer available for your system.
Note: If a MuPAD document has links, these links are replaced by regular text in the resulting PDF file.
Using the Print Preview toolbar, you can view one or more pages, zoom in and out, and switch between page orientations. If Print Preview shows that your document has layout problems visible when printed, you can fix these problems without leaving the Print Preview window. To see what a particular button lets you do, hover the pointer over the button and wait for a tooltip to appear.
A Indicates the current page number. Use this field to jump to a particular page. Click the appropriate arrow to display the previous or the next page.
B Lets you zoom in and out on a page.
C Displays the current zoom factor. Use this field to zoom in or out by a fixed percentage. The drop-down menu lets you quickly select one of the commonly used zoom factors.
D Fits the page to the Print Preview window. The button adjusts the document so the width of the page matches the width of the Print Preview window. The button adjusts the document so that an entire page fits in the Print Preview window. If you display two pages side-by-side, the Fit buttons adjust the document so that both pages fit in the window.
E Scales the document so that all objects including graphics and calculation regions fit in the page width.
F Selects page orientation. Lets you choose portrait or landscape layout.
G Opens the Page Format dialog box for adjusting page settings. When you modify settings in the Format dialog box, MuPAD applies the new settings not only to a preview, but also to the notebook itself. If later you close the Print Preview window and save the notebook, MuPAD saves the new page settings with the notebook. See Changing Page Settings for Printing for details.
H Lets you view multiple pages in the Print Preview window.
The option Show facing pages displays even pages on the left and odd pages on the right. If you select this option to display a document with multiple pages, the first page appears in the top-right corner.