Error using plot: Too many input arguments
3 ビュー (過去 30 日間)
古いコメントを表示
Using Matlab Online, My Code:
>> a = 0:0.5:50; >> b = a.^2; >> plot(a,b)
Error using plot Too many input arguments.
1 件のコメント
KSSV
2018 年 7 月 25 日
It should not give any error. Did you write any function on name plot? What does
which plot
outpts?
回答 (1 件)
Diwakar Ravichandran
2018 年 7 月 25 日
Hi Hrithik,
I did try reproducing the issue, and wasn't able to. You can try one of these two things.
1) As KSSV suggested, you can check what the which plot command returns. If it is a custom function which is in the same folder as pwd, then MATLAB will call that function first and hence you might be getting the above mentioned output.
2) It is also possible that you had made a mistake in the syntax on your command window and what you typed here is correct. Whilst, it is unlikely, I would suggest you try it again.
Hope this helps,
Cheers
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!