MATLAB: Create light object for specific axes handle in gui

guiguidelightlight objectMATLABmatlab guiplotsurf

I am trying to light a surface plot in one of my axes in my gui. the light function creates a light object for the current axes, but I want to specify the handle of the axes I am creating a light object for.
e.g.
surf(handles.axes1,X,Y,Z);
light(handles.axes1);
though light cannot accept axes handles. Is there a solution? Thanks.

Best Answer

Related Question