freefall - time=0:2:20; g=9.8; velocity=g.*time;...

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

View Full Document Right Arrow Icon
%Bryan Choquette %Me 82 %Assignment 5 part 2 %Create Function for Distance function [time,distance,velocity]=calc_time(g,time) time=0:2:20; g=9.8; velocity=g.*time; distance=(1/2).*g.*time.^2; end function [distance,velocity]=dist(g,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; g=9.8; velocity=g.*time; distance=(1/2).*g.*time.^2; end function [velocity]=veloc(g,time) time=0:2:20; g=9.8; velocity=g.*time; distance=(1/2).*g.*time.^2; end fprintf(time,distance,velocity)...
View Full Document

Ask a homework question - tutors are online