Advertisement
hiddenGem

EMF Across a Plane

Jul 1st, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.58 KB | None | 0 0
  1. %% EMF across a Plane
  2. % Determines the average induce voltage between the tips of the wings of an
  3. % airplane flying above the earth
  4.  
  5. % Inputs and Variables
  6. v = input('How fast is the plane flying in km/h?\n')*(10^3)/3600;
  7. distance = input('How far does the plane fly in meters?\n');
  8. EarthMag = input('What is the vertical component of the earths magnetic field?\n');
  9.  
  10. % Outputs and Equations
  11. Voltage = v*distance*EarthMag;
  12. fprintf('The average voltage is %f V\n', Voltage);
  13.  
  14. %{
  15. The user is asked the speed of the plane in km/hour and is saved in the
  16.     variable in meters/second
  17. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement