zl程序教程

您现在的位置是:首页 >  后端

当前栏目

【MATLAB】画多段折线图程序「建议收藏」

MATLAB程序 建议 收藏 折线图
2023-06-13 09:11:54 时间

大家好,又见面了,我是你们的朋友全栈君。

figure(1); T = [1 2 5 10]; P1=[0.71 0.732 0.78 0.82]; P2=[0.73 0.7823 0.8515 0.9223]; P3=[0.69 0.71 0.73 0.75]; P4=[0.65 0.69 0.71 0.69]; %plot(T,P1,’r.’,T,P2,’b.’,T,P3,’g.’); line(T,P1,’Color’,’r’,’Marker’,’o’); line(T,P2,’Color’,’b’,’Marker’,’+’); line(T,P3,’Color’,’g’,’Marker’,’*’); line(T,P4,’Color’,’y’,’Marker’,’x’); legend(‘iter=100′,’iter=200′,’iter=400′,’iter=1000’); axis([0 13 0.5 1]); xlabel(‘时间/s’); ylabel(‘识别率’); title(‘迭代次数对识别率的影响’);

效果图如下:

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/139640.html原文链接:https://javaforall.cn