matlab绘制曲线对比图
Posted LittlePenguin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了matlab绘制曲线对比图相关的知识,希望对你有一定的参考价值。
>> clear;
>> x1=[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8];
>> y1=[0,0.55,0.69,0.86,0.93,0.93,0.97,0.97,1];
>> x2=[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8];
>> y2=[0,0.45,0.79,0.93,0.97,0.97,1,1,1];
>> x3=[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8];
>> y3=[0,0.83,0.86,0.97,1,1,1,1,1];
>> plot(x1,y1,‘dk‘,x2,y2,‘sk‘,x3,y3,‘^k‘);
clear;
x1=[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8];
y1=[0,0.55,0.69,0.86,0.93,0.93,0.97,0.97,1];
x2=[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8];
y2=[0,0.45,0.79,0.93,0.97,0.97,1,1,1];
x3=[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8];
y3=[0,0.83,0.86,0.97,1,1,1,1,1];
plot(x1,y1,‘d-k‘,x2,y2,‘s-k‘,x3,y3,‘^-k‘)
legend(‘Combine‘,‘Upper‘,‘SMFL‘);
以上是关于matlab绘制曲线对比图的主要内容,如果未能解决你的问题,请参考以下文章