I want to find the time t when the projectile passes through the line x = 500.
I have been trying to find the position of a point at a specified time by altering tspan but have had no success.
I am trying to create an event function which will stop at x = 500 and yield the time t by using:
sol = odeXY([t, oput], tspan, 0, 500)
But this give the error:
Undefined function or variable 'odeXY'.
Error in projectile (line 17)
sol = odeXY([t, oput], tspan, 0, 500)

 採用された回答

Torsten
Torsten 2016 年 4 月 21 日

2 投票

Example: Simple Event Location
under
should solve your problem.
Best wishes
Torsten.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2016 年 4 月 21 日

編集済み:

2016 年 4 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by