Guilin Sun
Ansys Employee

We do not have control of matlab. You may check, verrify and confirm the dataset and the matrices in Lumerical script environment before saving to matlab data.

Please note that, there are some differences between Lumerical script and matlab. For example, FDTD uses auto non-uniform mesh, and the space varables xyz and E, H are non uniform. However if you directly send data to matlab, it will treat xyz in a uniform manner. eg, it recalculate x by linspace(min(x),max(x), length(x)), which creats uniform mesh.

Therefore, before sending data to any 3rd party tools, please make sure the data is in consistent with their definition.