simple error on plotting
1 次查看(过去 30 天)
显示 更早的评论
Dear There, I got an unknown error on plotting so simple function. My function is:
function test
x = 0:pi/100:2*pi;
y = sin(x);
plot (x,y)
end
I am really confused why I get this unknown error:
Error using plot
Too many input arguments.
Error in test2 (line 4)
plot (x,y)
Thanks in advance
0 个评论
回答(2 个)
Ingrid
2015-10-29
this should work, are you sure that you have not redefined the plot function or used it as a variable name?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!