Quote (Dubb100 @ 26 May 2010 12:54)
You're attacking me.

And i still

you.
function [velocity, height]=vsrocket(time)
time=input('Please insert a time value:')
while time<0
disp('Please Input a positive value')
time=input('Insert a value for time')
end
if time>=0 & time<=.15
height=310.19*time^2
velocity=310.19*time
elseif time>.15 &time<=2.707
height=6.9793+46.5285*time -4.905*time^2
velocity= 46.5285-9.8*time
elseif time>2.707 & time<=4.8494
height= 96.98890-20*time
velocity=20
elseif time>4.8494
disp('The rocket has already landed on the ground at this time.')
end
This post was edited by badboybilly3 on May 26 2010 02:56pm