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.

 

Â