2013年6月6日
摘要: http://blog.sina.com.cn/s/blog_6704354001019kx7.html用Matlab画图时,有时候需要对各种图标进行标注,例如,用“+”代表A的运动情况,“*”代表B的运动情况。legend函数的基本用法是LEGEND(string1,string2,string3, ...)分别将字符串1、字符串2、字符串3……标注到图中,每个字符串对应的图标为画图时的图标。例如:plot(x,sin(x),'.b',x,cos(x),'+r')legend('sin','cos')这样可以把".&q 阅读全文
posted @ 2013-06-06 16:27 CaptainLuffy 阅读(865) 评论(0) 推荐(0)