Info

此问题已关闭。 请重新打开它进行编辑或回答。

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.

2 次查看(过去 30 天)
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

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-2-12
编辑:Azzi Abdelmalek 2013-2-12
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

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by