Vertical_Motion_Under_Gravity - formula s = u*t-g/2*t.^2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Program Structure % Assign the data % Calculate the data according to the formula % plot the graph of s against t % Stop % % Assign the data g = 9.8; % acceleration due to gravity u = 60; % the initial velocity t = 0:0.1:12.3; % time in second t % Calculate the data according to the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: formula s = u*t-g/2 *t.^2; % vertical displacement s % plot the graph of s against t plot(t,s), title('vertical motion under gravity'),. .. xlabel('time'),ylabel('verticle displancement'),grid % plot disp([t' s']) % data table d % Stop...
View Full Document

This note was uploaded on 09/15/2011 for the course EE 150 at USC.

Ask a homework question - tutors are online