To solve v(t) = v0 * (1-(t/y).^4).^2 in MATLAB, we can use numerical methods to approximate the function and then plot the results.
First, we define the constants v0 and y:
main.m16 chars3 lines
Next, we create a vector of time values from 0 to y:
main.m20 chars2 lines
We can then define the velocity as a function of time:
main.m28 chars2 lines
Finally, we can plot the velocity as a function of time:
main.m75 chars5 lines
This will give us a visualization of the velocity as it changes over time according to the given function.
gistlibby LogSnag