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.

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

2 Comments

Ia1, Ia2 are current of dc motor.. and T are torque of motor..
I've got the answer. I was wrong on the script flux formula
thank you..

Answers (1)

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

This question is closed.

Tags

Asked:

on 12 Feb 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!