Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Issue in 2D colour map data export in matlab › Reply To: Issue in 2D colour map data export in matlab
July 4, 2023 at 2:26 pm
Ansys Employee
Yes, obviously.
Lumerical monitor records actually the frequency, not the wavelength by default. So the wavelength is not equi-spaced if you did not specify equi-wavelength. Lumerical script can know it is frequency or wavelengh in plot. However the matlab does not know this. So it assumes the wavelength is equi-spaced. Please either
1: plot in frequency
2: interpolate the result with equi-wavelength spacing before exporting to Matlab, or set to record equi-wavelength in the monitor and redo the sweep. It is better to inteploate the result.