plot from two vectors not working "not enough arguments"

i have a 3D array called 'arr' which was created from parsing a text table i wnat to plot a single 2D cell from it. when i try to do the following i get an error "Error using plot Not enough input arguments."
why its happening?
Thanks
phase=arr{1}{1};
amp=arr{1}{2};
plot(phase,amp);

댓글 수: 3

Adam
Adam 2017년 8월 29일
편집: Adam 2017년 8월 29일
If you put each statement on its own line you can step in with the debugger and see what the variables contain.
You may also have over-ridden the plot function. What does
which plot
show?
those variable have integers in them. first vector contains its a simple plot , why it says , not enough arguments.
-90 -87 -84 -81 -78 -75 -72 -69 -66 -63 -60 -57 -54 -51 -48
the second vector contains
-4.42360000000000 -4.89380000000000 -6.06030000000000 -6.97660000000000 -8.34980000000000 -8.95580000000000 -9.86160000000000 -11.4061000000000 -12.8650000000000 -14.1379000000000 -15.5264000000000 -17.2791000000000 -19.8537000000000 -24.0548000000000 -30.6594000000000
Then like I said, you may have over-ridden the plot function with one of your own.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2017년 8월 29일

댓글:

2017년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by