Question: % We start by declaring our variable. syms t % Input position as a function of time and compute velocity as a function of time.
We start by declaring our variable.
syms
Input position as a function of time and compute velocity as a function of time.
;
;
What equation do you need MATLAB to solve to find the value of max?
eqn;
What are you solving that equation to find?
TimeVisZero double
Finally, how do you use that solution to find max?
Ymax double
What equation do you need to solve to find the time when the rock returns to its starting point?
eqn ;
Solve that equation.
TimeYatStart double
What equation do we need to solve to find when
eqn;
Solve that equation.
TimeYisZero double
What is the velocity when
VwhenYisZero double
You need to plot and acceleration vs time, so you need to compute
;
Now to plot the three functions in that time interval, ie
fplot
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
