fzero help
조회 수: 2 (최근 30일)
이전 댓글 표시
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 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
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!