Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% EMF across a Plane
- % Determines the average induce voltage between the tips of the wings of an
- % airplane flying above the earth
- % Inputs and Variables
- v = input('How fast is the plane flying in km/h?\n')*(10^3)/3600;
- distance = input('How far does the plane fly in meters?\n');
- EarthMag = input('What is the vertical component of the earths magnetic field?\n');
- % Outputs and Equations
- Voltage = v*distance*EarthMag;
- fprintf('The average voltage is %f V\n', Voltage);
- %{
- The user is asked the speed of the plane in km/hour and is saved in the
- variable in meters/second
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement