Hi Zemax community,
I am a student who is learning to use the ZOS API in Matlab and I’m having issues with getting results from New_WavefrontMap. How do I correctly pull data from a wavefront map? As the results I plot are always zero.
I am running a wavefront analysis and POP analysis in the same program, which uses the ‘Double Gauss 5 degree field.zmx’ file from samples. I apply the analysis then pull the results using the following code to get the data:
WF_Map_Data = New_WF_map_results.DataGrids(1).Values.double;
matrixData = POP_Results.DataGrids(1).Values.double;
and try to plot it in Matlab the matrix will be populated by zeros.
Both wavefront map and POP are set up in a similar fashion, but when plotting the results of the POP it will not be populated by zeros.
Thanks for reading
Nick