Info

This question is closed. Reopen it to edit or answer.

i wanna ask about graphic, x = [Ia1,Ia2,Ia3]; y = [Ta1,Ta2,Ta3]; plot(x,y) xlabel('Arus Jangkar'),​ylabel('To​rsi'); but it always error, the error : Error using ==> plot Vectors must be the same lengths.

1 view (last 30 days)
i wanna ask about graphic, example:
x = [Ia1,Ia2,Ia3];
y = [Ta1,Ta2,Ta3];
plot(x,y)
xlabel('Arus Jangkar'),ylabel('Torsi');
but it always error, the error is : Error using ==> plot Vectors must be the same lengths.
i think it'is the same length.. please help me, thanks before..
best regards

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 12 Feb 2013
Edited: Azzi Abdelmalek on 12 Feb 2013
Type
size(x)
size(y)
You should find the same result
x = [1,2,3];
y = [10,20,30];
plot(x,y)
xlabel('Arus Jangkar'),ylabel('Torsi');
%There is no error

Tags

Community Treasure Hunt

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

Start Hunting!