06.08.2013 Views

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

subplot(1,2,1),bar3(x',Y',1)<br />

xlabel('因素 ABC'),ylabel('x'),zlabel('y')<br />

colormap(summer)<br />

subplot(1,2,2),bar3h(x',Y','grouped')<br />

ylabel('y'),zlabel('x')<br />

6.4.1.3 饼图 pie, pie3<br />

图 6.4-3<br />

【例 6.4.1.3-1】饼图指令 pie , pie3 用来表示各元素占总和的百分数。该指令第二输入宗量<br />

为与第一宗量同长的 0-1 向量,1 使对应扇块突出。<br />

a=[1,1.6,1.2,0.8,2.1];<br />

subplot(1,2,1),pie(a,[1 0 1 0 0]),legend({'1','2','3','4','5'})<br />

subplot(1,2,2),pie3(a,a==min(a)),colormap(cool)<br />

24%<br />

15%<br />

18%<br />

6.4.1.4 填色图 fill,fill3<br />

1<br />

2<br />

3<br />

4<br />

5<br />

31%<br />

12%<br />

图 6.4-4<br />

15<br />

15%<br />

24%<br />

31%<br />

18%<br />

12%

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

Saved successfully!

Ooh no, something went wrong!