jeremydmatlab1 - %Convert mph to meter/sec v1=v.4470...

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

View Full Document Right Arrow Icon
% Jeremy Debruce % 11/05/2008 % This is my first matlab program. % This program is used to calculate the drag of an airplane. % Defined Variables clear,clc drag=20000; P=1e-6; v=100; A=1; %Calculate the drag coefficient.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %Convert mph to meter/sec v1=v*.4470; cd=drag*(2/(P*v1^2*A)); %Calculate the drag. v2=(0:20:200); v3=v2*.44704;; drag1=cd*(P*v3.^2*A/2); %Create a table for results table=[v3', drag1']...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online