4 Q+ `, X# L- b) s. o1 ePaperPosition ' M' V. I2 m# X( P0 g7 m four-element rect vector * T' ` M/ K+ I3 v+ O7 N Location on printed page. A rectangle that determines the location of the figure on the printed page. Specify this rectangle with a vector of the form 5 Z; t. W& d' v. `9 h+ J: p rect = [left, bottom, width, height] / Y+ W- @& \# g. [! r& o: n where left specifies the distance from the left side of the paper to the left side of the rectangle and bottom specifies the distance from the bottom of the page to the bottom of the rectangle. Together these distances define the lower-left corner of the rectangle. width and height define the dimensions of the rectangle. The PaperUnits property specifies the units used to define this rectangle. - {1 P1 ?+ j/ @ Q9 U0 j3 t. U# g% }- E
# t$ k1 x* k b- f3 W
要使图像比例输出与屏幕显示的一致,可以使用如下命令9 U0 l" M, K# L4 h* l3 m3 e
屏幕显示图像尺寸可以plot时用 set(gcf,'position',[left bottom width height]) 调整,或者print之前拖动窗口手动调整4 C, u$ Z9 q! n1 P F
* F6 m7 W, N: v7 d: u- i M5 r, {' oThis example exports a figure at screen size to a 24-bit TIFF file, myfigure.tif.4 [; U7 A* Y- B
+ f- p6 {1 r( x4 |/ q) k
" ]$ m7 U4 Z4 D
% set(gcf,'position',[80 100 800 600]) % 如果手动拖放,则不需要这一行命令 ; n! g& E" i5 s: w, W/ Hset(gcf, 'PaperPositionMode', 'auto') % Use screen size ! I7 N! _7 C8 W: Yprint -dtiff myfigure) ^& |2 r- ~: S+ O