Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute MATLAB/Octave Online

ho=input('Enter initial height in meters: ');
vo=input('Enter velocity of the ball in meters per second: ');
t=0:0.001:10;
g=-9.81;
ht=0.5*g*t.^2+vo*t+ho;
vt=g*t+vo;
plot(t,ht);
title('height vs time');
xlabel('time');
ylabel('height');

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.