编辑: star薰衣草 2014-10-28

axis off >

>

text(-1.2,-4,'

伪彩色图'

) >

>

subplot('

position'

,[0.72,0.5,0.25,0.3]) >

>

sphere(25);

>

>

axis equal,axis([-0.75,0.75,-0.75,0.75,-0.75,0.75]) >

>

light('

Position'

,[1

3 2]);

>

>

light('

Position'

,[-3 -1 3]);

>

>

material shiny >

>

axis off >

>

text(-0.8,-0.7,-1,'

三维图'

) >

>

subplot('

position'

,[0.45,0.15,0.5,0.25]) >

>

t=0:pi/15:pi;

>

>

y=sin(4*t).*sin(t)/2;

>

>

plot(t,y,'

-bs'

,'

LineWidth'

,2,设置线型 '

MarkerEdgeColor'

,'

k'

设置标记点边缘颜色 '

MarkerFaceColor'

,'

y'

设置标记点填充颜色 '

MarkerSize'

,5) >

>

axis([0,3.14,-0.5,0.5]) >

>

xlabel('

带标记点的线图'

) >

>

subplot('

position'

,[0.1,0.9,0.8,0.1]) >

>

text(0.25,0.2,'

多窗口绘图示例'

,... >

>

'

fontsize'

,25,'

fontname'

,'

隶书'

,'

color'

,'

b'

) >

>

axis off SUBPLOT Create axes in tiled positions. H = SUBPLOT(m,n,p), or SUBPLOT(mnp), breaks the Figure window into an m-by-n matrix of small axes, selects the p-th axes for for the current plot, and returns the axis handle. The axes are counted along the top row of the Figure window, then the second row, etc. For example, SUBPLOT(2,1,1), PLOT(income) SUBPLOT(2,1,2), PLOT(outgo) plots income on the top half of the window and outgo on the bottom half. SUBPLOT(m,n,p), if the axis already exists, makes it current. SUBPLOT(m,n,p,'

replace'

), if the axis already exists, deletes it and creates a new axis. SUBPLOT(m,n,P), where P is a vector, specifies an axes position that covers all the subplot positions listed in P. SUBPLOT(H), where H is an axis handle, is another way of making an axis current for subsequent plotting commands. SUBPLOT('

position'

,[left bottom width height]) creates an axis at the specified position in normalized coordinates (in the range from 0.0 to 1.0). If a SUBPLOT specification causes a new axis to overlap an existing axis, the existing axis is deleted - unless the position of the new and existing axis are identical. For example, the statement SUBPLOT(1,2,1) deletes all existing axes overlapping the left side of the Figure window and creates a new axis on that side - unless there is an axes there with a position that exactly matches the position of the new axes (and '

replace'

was not specified), in which case all other overlapping axes will be deleted and the matching axes will become the current axes. SUBPLOT(111) is an exception to the rules above, and is not identical in behavior to SUBPLOT(1,1,1). For reasons of backwards compatibility, it is a special case of subplot which does not immediately create an axes, but instead sets up the figure so that the next graphics command executes CLF RESET in the figure (deleting all children of the figure), and creates a new axes in the default position. This syntax does not return a handle, so it is an error to specify a return argument. The delayed CLF RESET is accomplished by setting the figure'

s NextPlot to '

replace'

.

3、画有数值标识的等高线或配合使用图形句柄函数控制图形属性. [C,H] = CONTOUR(...) 函数结合使用clabel(c,h) 函数就可实现等高线数值标注.结合 set(hc(4),'

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题