怎么给MATLAB画出的饼图加注释?

画出的饼图怎么根据那些不同的部分加上注释呢?

第1个回答  2013-04-23
clear all;clc;
pie(1:4,{'注释1','注释2','注释3','注释4'});本回答被网友采纳
第2个回答  2017-09-01
图形窗口里 inster------ textbox 然后 在图形窗口里 生成文本窗口,再填写你的内容就可以了,
第3个回答  推荐于2017-09-01
过绘制二阶系统阶跃响应,演示MATLAB5.0以前版和以后版指令在标识图形上的差别。本例比较综合,涉及的指令知识较广,包括图形文字,箭头,字体标注,网格等等设置。
clf;t=6*pi*(0:100)/100; y=1-exp(-0.3*t).*cos(0.7*t); tt=t(find(abs(y-1)>0.05)); ts=max(tt);

subplot(1,2,1), plot(t,y,'r-','LineWidth',3), grid on;
axis([0,6*pi,0.6,max(y)]); title('y=1–exp(-alpha*t)*cos(omega*t)');
text(11,1.25,'alpha=0.3'); text(11,1.15,'omega=0.7');
hold on; plot(ts,0.95,'bo','MarkerSize',10); hold off
text(ts+1.5,0.95,['ts=' num2str(ts)]); xlabel('t -->'), ylabel('y -->')

subplot(1,2,2), plot(t,y,'r-','LineWidth',3); grid on;
axis([-inf,6*pi,0.6,inf]); title('\it y = 1 - e^{ -\alphat}cos{\omegat}');
set(gca,'Xtick',[2*pi,4*pi,6*pi],'Ytick',[0.95,1,1.05,max(y)]);
text(13.5,1.2,'\fontsize{12}{\alpha}=0.3'); text(13.5,1.1,'\fontsize{12}{\omega}=0.7')
hold on; plot(ts,0.95,'bo','MarkerSize',10); hold off

cell_string{1}='\fontsize{12}\uparrow'; cell_string{2}='\fontsize{16} \fontname{隶书}镇定时间';
cell_string{3}='\fontsize{6} '; cell_string{4}=['\fontsize{14}\rmt_{s} = ' num2str(ts)];
text(ts,0.85,cell_string); xlabel('\fontsize{14} \bft \rightarrow'); ylabel('\fontsize{14} \bfy \rightarrow本回答被网友采纳