Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Height of the Image
- % Determines the height of an image in front of diverging lens
- % Inputs and Variables
- focal = input('Focal length?\n');
- h = input('Object height\n');
- d = input('Object distance\n');
- % Outputs and Equations
- hprime = h*(focal/(focal-d))
- fprintf('The height of the image is: %.3e m\n', hprime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement