Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Size of Moon's Image
- % Determines teh diameter of the moon's image
- % Inputs and Variables
- f = input('Focal Point\n');
- dmoon = input('Diameter of the moon\n');
- d = input('Distance from Earth to the Moon\n');
- % Outputs and Equations
- hprime = f*dmoon/d;
- fprintf('The image diameter is: %.3e m\n', hprime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement