You can write a function in Matlab to derive the equation v(y) = v0 * (1-(y/t).^4).^2
as follows:
main.m197 chars8 lines
In this function, y
, v0
, and t
represent the height, initial velocity, and time taken to reach the maximum height, respectively.
To use this function, simply call it with appropriate values of y
, v0
, and t
:
main.m153 chars3 lines
This will return the value of v
at a height of 10 meters.
gistlibby LogSnag