From question, I guess the inputs should be velocity and depth of the container. The outputs should be time taken to reach the required velocity (t1) and time taken to reach the bottom of the container (time). I have created the function Velo_ball(velocity,depth) which inputs the velocity and depth as input and gives the output t1=time at which given velocity is acheived and time= time to hit the bottom of container. Hope this helps. If not please rectify.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/594874-how-to-solve-ode-functions#comment_1011844
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/594874-how-to-solve-ode-functions#comment_1011844
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/594874-how-to-solve-ode-functions#comment_1011910
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/594874-how-to-solve-ode-functions#comment_1011910
Sign in to comment.