%曲线图code: x=[1 2 3 4 5 ]; y1 =[ 57.9 75.7 76 80.2 97]; y4=[ 90.9 95 95 97.4 99]; y8 =[65.5 82 84 91.3 95]; plot(x,y1,‘-.rv‘,x,y4,‘--ks‘,x,y8,‘:mp‘); legend(‘method1‘,‘method2‘,‘method3‘); set(gca,‘xtick‘, x_Matrix) xlabel(‘number‘); ylabel(‘Recognition rates(%)‘);
%连续曲线图 x=[1 2 3 4 5 ]; y1 =[ 57.9 75.7 76 80.2 97]; y4=[ 90.9 95 95 97.4 99]; y8 =[65.5 82 84 91.3 95]; values1=spcrv([[x(1) x x(end)];[y1(1) y1 y1(end)]],3,1000); values4=spcrv([[x(1) x x(end)];[y4(1) y4 y4(end)]],3,1000); values8=spcrv([[x(1) x x(end)];[y8(1) y8 y8(end)]],3,1000); plot(values1(1,:),values1(2,:),values4(1,:),values4(2,:),values8(1,:),values8(2,:)) ;
时间: 2024-10-07 11:20:49