freefallmain - time=0:2:20  ll Function[time distance...

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

View Full Document Right Arrow Icon
%Bryan Choquette %ME82 %Assignment 5 pt 2 %Write a function called freefall that has one input parameter, %a vector of values of t and returns two vectors, distance (x) and velocity (v). clc clear all %set time
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: time=0:2:20; %Call Function [time distance velocity]=freefall(time); %display results fprintf('Time Distance Velocity\n') matrix=[time; distance; velocity]; fprintf('%.1f%13.1f%20.1f\n',matrix)...
View Full Document

This note was uploaded on 03/22/2012 for the course ENGINEERIM 1000 taught by Professor Ee during the Spring '12 term at Vermont Tech.

Ask a homework question - tutors are online