I tried to change surface setting in spot diagram by ZOSAPI MATLAB and get spot position info by the following commands in MATLAB:
spot.ApplyAndWaitForCompletion();
spot_results = spot.GetResults();
spot_results.SpotData.GetReferenceCoordinate_X_For (2,1)
spot_results.SpotData.GetReferenceCoordinate_Y_For (2,1)
Which command should I use to fulfil this task??