Dear lumerical team

I am using script to calculate modes and save the mode field data for Matlab contour plot. I am using fiber design and my structure has 15-20 modes (for example a fiber containing 20 modes). my script is

```
clear;
findmodes;
E=getresult("FDE::data::mode1","E");
# Get field and position vectors
Ex=pinch(E.Ex);
Ey=pinch(E.Ey);
x=E.x;
y=E.y;
# Specify the resolution of the plot
res_x=30;
res_y=20;
# Define uniform vectors
x2=linspace(x(1),x(length(x)),res_x);
y2=linspace(y(1),y(length(y)),res_y);
xmesh = meshgridx(x2,y2);
ymesh = meshgridy(x2,y2);
# Interpolate fields on new uniform vectors
Ex2=interp(Ex, x, y, x2, y2);
Ey2=interp(Ey, x, y, x2, y2);
matlabsave("monitor_data",Ex2,Ey2,xmesh,ymesh);
```

from the above script I can calculate mode1 data and save. But I want to measure 15-20 modes (i.e. mode1, mode2, mode3, mode4, mode5, mode6 mode7, mode8… etc) and want to save the data at a time. can someone guide me how to do all modes save at a time by modifying the script.

with advance thanks