Please consider the following code lines that work properly in command window and outside of the GUI environment:
hist3([SC(:,1) SC(:,2)],'CdataMode','auto','Nbins',[60 60]);view(2);colorbar;
How can I write GUI codes as a push button's Callback function in the myGUI.m file to run this through the axes?
I face with the following errors:
*Error using matlab.ui.container.Panel/set
There is no renderer property on the Panel class.
**Error in hist3 (line 301)
***Error in my_gui>push_button_Callback (line 1875)
hist3(handles.axes1,[SC(:,1) SC(:,2)],'CdataMode','auto','Nbins',[60 60]);view(2);colorbar;
Thank you in advance