Desktop Tools and Development Environment |
Publishing Images Preferences for the Editor/Debugger
Select File -> Preferences -> Editor/Debugger -> Publishing to specify preferences related to images used in publishing M-files that contain cells. (See Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cells.)
Figure Capture Method
To create the images produced when publishing M-files, you can use either the Print or Screenshot option. Selecting Print means that MATLAB uses the print
function, while Screenshot means that MATLAB uses the getframe
function.
With Screenshot, the published image identically matches the image you see on the screen, however, another open application window might be partially on top of the image and would be included in the capture.
With Print, the published image never includes portions of another window, but in some cases, the published image does not exactly match what you see on the screen. As an example, with the EraseMode
plot property set to none
, an image published using the Print preference does not exactly match the screen image.
Image File Type
Select the file type for any images produced when publishing M-files. The image file types available depend on the Figure capture method you specified.
Resize Image
You can restrict the height and/or width of images in the published output when the Image File Type preference is a bitmap, such as .png
or .jpg
. This preference does not apply when the image file type is a vector format, such as .eps
. Supply a maximum, in pixels, for one or both dimensions. As noted in the preference, the image's aspect ratio is maintained. If you restrict both height and width, MATLAB maintains the aspect ratio by using the maximum you specified for one dimension and something less than the maximum for the other dimension.
Create Thumbnail for Visual Directory
With this option selected, MATLAB automatically creates a thumbnail image in the Current Directory browser Visual Directory when you publish the M-file and when the Image File Type preference is a bitmap, such as .png
or .jpg
. With this option cleared, MATLAB does not automatically create the thumbnail image, but you can create it by selecting the make thumbnail action for the M-file in the Visual Directory display. For more information, see Visual Directory in Current Directory Browser.
See Also
Publishing Preferences for the Editor/Debugger | Autosave Preferences for the Editor/Debugger |
© 1994-2005 The MathWorks, Inc.