Plot looks weird after changing line thickness

1 reply · 3K views · last reply
zhillyz
Messages
64
Reaction score
0
TL;DR
Copied equations from paper into MATLAB and gave some test variables but output looks weird
MATLAB figure window plotting a curve from x = 0.2 to 2 on the horizontal axis, starting near -26 and rising to about -13.8 on the vertical axis, levelling off to the right.

First image showing script and plot
MATLAB editor script beside a Figure 1 plot of T against wavelength from 0.2 to 2, with a sharp spike near 0.27 reaching about 2600 and a near-zero tail.

Second image where all I have done is slightly change the thickness and now the plot looks very weird.
Line graph of transmission against wavelength in nm from 500 to 900, with a solid oscillating curve, a dotted curve, dashed envelope curves labelled T_s, T_m0, T_m, T_π0 and T_π, and a horizontal dotted line at about 0.9.

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
  • MATLAB editor and Figure 1 window: a plot of a curve against x from 0.2 to 2 with a sharp spike near 0.27 reaching about 2600, then near zero.
    Thickness2.png
    45.9 KB · Views: 427
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.