i don't know why this error ,,

x = 0:2:50;
y = y+(9.8-(12.5*y/68.1)).*dt;
dt=2;
plot(x,y)
i draw graph but
??? Error using ==> times Matrix dimensions must agree.
Error in ==> Untitled at 2 y = y+(9.8-(12.5*y/68.1)).*dt;
plz help me

1 件のコメント

bym
bym 2011 年 3 月 27 日
are you sure that is the error your getting?

回答 (1 件)

bym
bym 2011 年 3 月 27 日

0 投票

Perhaps you want:
x = 0:2:50;
dt=2;
y = x+(9.8-(12.5.*x/68.1)).*dt;
plot(x,y)

この質問は閉じられています。

タグ

質問済み:

Lee
2011 年 3 月 27 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by