matlab中legend什么意思

来源:学生作业帮助网 编辑:六六作业网 时间:2024/07/03 13:56:18
matlab中legend什么意思matlab中legend什么意思matlab中legend什么意思x=0:0.2:12;plot(x,sin(x),''-'',x,1.5*cos(x),'':'')leg

matlab中legend什么意思
matlab中legend什么意思

matlab中legend什么意思
x=0:0.2:12;
plot(x,sin(x),'-',x,1.5*cos(x),':')
legend('First','Second',-1)
legend就是添加图例的标注,字符串依次注释plot中的图,后面板的参数(此处是-1)表示注释的位置~

legend是图例注释
具体用法网上很多。比如http://www.360doc.com/content/10/0907/10/2945918_51791707.shtml
建议提问之前先自己搜索