We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics Intensity evaluation Reply To: Intensity evaluation

Guilin Sun
Ansys Employee

You can use two matrices to represent the data for the upper and lower peaks, and then create meshgrid like this:

X=meshgridx(x,y);

Y=meshgridy(x,y);

maxe2=max(e2);

indexe2=find(e2(:,:,1,1),maxe2);

?X(indexe2);

?Y(indexe2);

where e2 is the intensity sub matrix.

 

Â