Matt Wilson
Subscriber

Hi Guilin, the script now iterates through the for loop properly. I seem to be having issues with the values of E. I think it is due to a misunderstanding of how it is calculated from the raw data. Can you advise?

 

Ex = real(getdata("E_field", "Ex"));

Ey = real(getdata("E_field", "Ey"));

E_data = sqrt(Ex^2 + Ey^2);

This is how I am currently calculating it.