Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Photonics Q analysis script understanding Reply To: Q analysis script understanding

Dev
Ansys Employee

Hello, 

Add the following lines at end of the script. You can plot the result in wavelength.

 

plot(c/f(p1:p2)*1e9,peak_spectra(p1:p2,1:number_resonances)/max(f_spectrum)

,"wavelength (nm)","Arbitrary units","Spectrum of resonances");

plot(c/f(p1:p2)*1e9,f_spectrum(p1:p2)/max(f_spectrum),peak_filters2(p1:p2,1:number_resonances)

,"wavelength (nm)","Arbitrary units","Spectrum and filters");

Note: When you use Forum next time please try to share more details. The more details you write the faster you get a suggested solution.

 Ansys Insight: Ansys Innovation Space —- Forum and Feed

[bingo_chatbox]