フィルターのクリア

fzero help

2 ビュー (過去 30 日間)
buxZED
buxZED 2011 年 2 月 24 日
y=@(T) I*T*sind(A)-(0.5*G*(T^2));
root = fzero(y, 0)
abouve eqation is for a projectile that projected at an angle (gose in a kind of ar half oval shape)
want to find the time it hist ground but fzero only gives me the biginning which is 0
  23 件のコメント
Matt Tearle
Matt Tearle 2011 年 2 月 25 日
Can I suggest using an initial guess of 2*I*sind(A)/G? Just sayin'...
Matt Fig
Matt Fig 2011 年 2 月 25 日
Come on now, Matt! Where is the fun of solving the equation with your brain instead of making MATLAB do it?

サインインしてコメントする。

採用された回答

Honglei Chen
Honglei Chen 2012 年 9 月 17 日
The anwser is in the comments above
From Matt Fig
rt = 0;
d = .1;
cnt = 1;
while rt<.1
rt = fzero(y,rt+d*cnt);
cnt = cnt + 1;
end
  2 件のコメント
Matt Fig
Matt Fig 2012 年 9 月 17 日
Digging deep, Honglei! How did you come across this one from over a year ago?
Honglei Chen
Honglei Chen 2012 年 9 月 17 日
I'm helping cleaning up some old, unanswered questions :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by