YSICS: Troubleshooting an Equation Plot Issue

Click For Summary
The discussion revolves around a user encountering discrepancies between their plot and the expected results from a referenced publication. The user presents images showing their script and plot, noting that a minor adjustment in thickness leads to unexpected visual outcomes. They express confusion over potential errors in their equations compared to those in the paper. A participant identifies a likely typo in the publication's definition of a variable, suggesting a correction to the equation that may resolve the user's plotting issues. The focus remains on troubleshooting the plotting discrepancies and clarifying the equations used.
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: 348
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.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
3
Views
4K
Replies
4
Views
3K