Assignment11_Chapter4_Exercise1

Assignment11_Chapter4_Exercise1 -...

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

View Full Document Right Arrow Icon
% Ashwin Satish % Assignment 11 - Chapter 4, Exercise #1 % ENES 101 / 0103 % % Define your variables t = 0:20; V0 = 100; V % Define your constant gravity = 9.8; g % Calculations Horizontal_Distance = t * V0 * cos(45); Vertical_Distance = (t .* V0 .* sin(45)) - (.5 .* (gravity) .* (t.^2)); V % Plot the information (w/ titles)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot(t,Horizontal_Distance) title('Time vs. Horizontal Distance'); xlabel('Time (s)'); ylabel('Horizontal Distance (ft)'); y figure(2); plot(t,Vertical_Distance) title('Time vs. Vertical Distance'); xlabel('Time (s)'); ylabel('Vertical Distance (ft)'); y % End of exercise %...
View Full Document

Ask a homework question - tutors are online