Invalid first data argument

3 次查看(过去 30 天)
The following code:
plot(x,y,'Marker','*','Color','r',x2,y2,'Marker','--','Color','b')
generates this error: "Invalid first data argument".
here x, y and x2, y2 are arrays of same size.
  2 个评论
Image Analyst
Image Analyst 2016-4-8
Doesn't matter now. I told you how to fix it below.

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2016-4-7
编辑:Image Analyst 2016-4-7
'--' is not a valid choice for 'Marker'. Use a valid marker. See the help for a list of them.
Try this:
plot(x,y,'r*-', x2,y2,'bd-');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by