


{"id":308514,"date":"2023-09-26T02:00:33","date_gmt":"2023-09-26T02:00:33","guid":{"rendered":"\/forum\/?post_type=reply&#038;p=308514"},"modified":"2023-09-26T02:00:33","modified_gmt":"2023-09-26T02:00:33","slug":"308514","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/308514\/","title":{"rendered":"Reply To: Q analysis script understanding"},"content":{"rendered":"<p>Hello,&nbsp;<\/p>\n<p>Add the following lines at end of the script. You can plot the result in wavelength.<\/p>\n<p>&nbsp;<\/p>\n<p>plot(c\/f(p1:p2)*1e9,peak_spectra(p1:p2,1:number_resonances)\/max(f_spectrum)<\/p>\n<p>,&#8221;wavelength (nm)&#8221;,&#8221;Arbitrary units&#8221;,&#8221;Spectrum of resonances&#8221;);<\/p>\n<p>plot(c\/f(p1:p2)*1e9,f_spectrum(p1:p2)\/max(f_spectrum),peak_filters2(p1:p2,1:number_resonances)<\/p>\n<p>,&#8221;wavelength (nm)&#8221;,&#8221;Arbitrary units&#8221;,&#8221;Spectrum and filters&#8221;);<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/09\/26-09-2023-1695692698-mceclip0.png\"><\/p>\n<p>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.<\/p>\n<p>&nbsp;<a href=\"\/forum\/forums\/topic\/ansys-insight-ansys-innovation-space-forum-and-feed\/\">Ansys Insight: Ansys Innovation Space &mdash;- Forum and Feed<\/a><\/p>\n","protected":false},"template":"","class_list":["post-308514","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/308514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/308514\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=308514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}