Advertisement
hiddenGem

Two Polarizing Plates

Jul 25th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.67 KB | None | 0 0
  1. %% Two Polarizing Plates
  2. % Determines the intensity of a wave passing through polarizer A and B ans
  3. % then interchanged
  4.  
  5. % Inputs and Variables
  6. I0 = input('The average intensity of the polarized wave\n');
  7. theta1 = input('Angle of polarizer A\n')*pi/180;
  8. theta2 = input('Angle of polarizer B\n')*pi/180;
  9.  
  10. % Outputs and Equations
  11. I1 = I0*(cos(theta1))^2
  12. I2 = I1*(cos(theta2-theta1))^2
  13. I1prime = I0*(cos(theta2))^2;
  14. If = I1prime*(cos(theta1-theta2))^2
  15. fprintf(['The average intensity after...\npolarizer A: %.4e W/m^2\n'...
  16.          'polarizer B: %.4e W/m^2\n'...
  17.          'the interchange: %.4e W/m^2\n'], I1, I2, If)
  18.  
  19. %{
  20. The trigonomic functions are in radians
  21. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement