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('Torsi'); but it always error, the error : Error using ==> plot Vectors must be the same lengths.
1 view (last 30 days)
Show older comments
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
Answers (1)
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!