Why is this code giving me an error?
显示 更早的评论
Error using plot
Error in color/linetype argument.
Error in garcia (line 65)
figure(2);hold off;plot(x_plot,m_plot,'1');hold on;
采纳的回答
更多回答(1 个)
Image Analyst
2015-12-24
0 个投票
What is the '1', '2', and '3' for? It needs to be a color, a marker, and a line style, like 'bo-' or 'rd:'. If you want a legend, use legend(). If you want text up there at some specific place, use text().
类别
在 帮助中心 和 File Exchange 中查找有关 Octave 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!