12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

print, printoptfigure window and print it at the size you see on the screen. See Options andthe previous section for information on the −zbuffer and −r200 options.surf(peaks)shading interpset(gcf,'PaperPositionMode','auto')print −dpsc2 −zbuffer −r200Batch ProcessingYou can use the function form of print to pass variables containing file names.For example, this for loop creates a series of graphs and prints each one with adifferent file name.for i=1:length(fnames)surf(Z(:,:,i))print('-dtiff','-r200',fnames(i))endTiff PreviewThe command:print -depsc -tiff -r300 picture1saves the current figure at 300 dpi, in a color Encapsulated PostScript filenamed picture1.eps. The -tiff option creates a 72 dpi TIFF preview, whichmany word processor applications can display on screen after you import theEPS file. This enables you to view the picture on screen within your wordprocessor and print the document to a PostScript printer using a resolution of300 dpi.See Alsoorient, figureSee the Using <strong>MATLAB</strong> <strong>Graphics</strong> manual for detailed information aboutprinting in <strong>MATLAB</strong>.2-376

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!