필터 지우기
필터 지우기

Error using plot: Too many input arguments

조회 수: 2 (최근 30일)
Hrithik George
Hrithik George 2018년 7월 25일
답변: Diwakar Ravichandran 2018년 7월 25일
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
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
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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by