a=[1,1.6,1.2,0.8,2.1]; subplot(1,2,1),pie(a,[1 0 1 0 0]), legend({'1','2','3','4','5'}) subplot(1,2,2), b=int8(a==min(a)) ;pie3(a,b) colormap(cool)
时间: 2024-10-10 12:29:42
a=[1,1.6,1.2,0.8,2.1]; subplot(1,2,1),pie(a,[1 0 1 0 0]), legend({'1','2','3','4','5'}) subplot(1,2,2), b=int8(a==min(a)) ;pie3(a,b) colormap(cool)