|
原帖由 ChaChing 于 2008-11-27 22:39 发表
aa=[1:5];aa=[aa;aa+1]; hha=plot(aa); legend(hha([1,3,5]), 'data1','data3','data5');
的确很好使,谢谢ChaChing。我根据ChaChing给的提示,画了一个图,呵呵
clc;clear; x=rand(5);
subplot(121); h1=plot(x(:,1)); hold on
h2=plot(x(:,2),'-.'); h3=plot(x(:,3),'-o');
h4=plot(x(:,4),'-*'); h5=plot(x(:,5),'-s');
legend('data1','data3','data5'); hold off
subplot(122); h1=plot(x(:,1)); hold on
h2=plot(x(:,2),'-.'); h3=plot(x(:,3),'-o');
h4=plot(x(:,4),'-*'); h5=plot(x(:,5),'-s');
legend([h1 h3 h5], 'data1','data3','data5'); hold off
[ 本帖最后由 ChaChing 于 2009-4-15 17:49 编辑 ] |
-
Legend选序
评分
-
1
查看全部评分
-
|