YSICS: Troubleshooting an Equation Plot Issue

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
zhillyz
Messages
64
Reaction score
0
TL;DR
Copied equations from paper into MATLAB and gave some test variables but output looks weird
Thickness1.png

First image showing script and plot
Thickness2.png

Second image where all I have done is slightly change the thickness and now the plot looks very weird.
Transmission.png

Final image showing the kind of plot I am expecting.

Am I just doing something stupid as I can't see what is wrong/different between my equations and the ones in the publication?
Here is the paper: https://iopscience.iop.org/article/10.1088/0022-3735/16/12/023/pdf
Any help of pointers would be appreciated.
PH
 

Attachments

  • Thickness2.png
    Thickness2.png
    45.9 KB · Views: 383
Physics news on Phys.org
They clearly have a typo in their definition of C since there are two opening parenthesis, but only one closing. My guess is that it should be ##2(n^2 - 1)(n^2 - s^2)##. Try that and see if it fixes the problem.