Devika
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