Guilin Sun
Ansys Employee

you can use

EE=getresult("mode1","E");

E2=EE.E2;

Ex=EE.Ex;

x=EE.x;

where Ex (and Ey,Ez) are 4D matrix of xyz and f.

then you can find x=0 intensity, such as

E_line=E2(find(x,0),:,:,:);

In your case, you can use E2(:,:,find(z,0),1) where z=EE.z

Please try.