Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: MatLab GUI axes
Posted:
Nov 23, 2007 1:26 AM


Hi see this example http://www.mathworks.com/access/helpdesk/help/techdoc/ index.html?/access/helpdesk/help/techdoc/creating_guis/f5 1002439.html&http://www.mathworks.com/cgibin/texis/ webinator/ search/?db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&is_summary_on=1&ResultCount=10&query=if+%28hObject+%3D%3D+handles.english%29++++++set%28handles.text4%2C+%27String%27%2C+%27lb%2Fcu.in%27%29%3B++++++set%28handles.text5%2C+%27String%27%2C+%27cu.in%27%29%3B++++++set%28handles.text6%2C+%27String%27%2C+%27lb%27%29%3B&submitButtonName=Search
"H H" <john.doe.nospam@mathworks.com> wrote in message <fi5gt1$b4s$1@fred.mathworks.com>... > "Bruno Luong" <brunoluong@yahoo.com> wrote in message > <fhtus8$lkq$1@fred.mathworks.com>... > > "H H" <john.doe.nospam@mathworks.com> wrote in message > > <fhtfvp$jdo$1@fred.mathworks.com>... > > > I looked this up and I am not sure how I can use it. Can you > > > show me the example with my code? > > > > > > Thanks. > > > > > > > In the callback of a GUI such as > > function browseBut_Callback(hObject, eventdata, handles) > > > > the thrid argument "handles" is a structures that contains > > handles of objects in your GUI. Often time the main figure is > > handles.figure1. If you have an axes in the GUI, you can > > access to its handle through the structure "handles". > > > > Get there the handles of your figure and axis, do not use > > gcf and global variable. > > > > Note: You can rename handle of your objects from GUIDE by > > editing their properties 'Tag'. > > > > Bruno > > Bruno, > > Sorry for the trouble but I am still confuse. > > Can past a sample of code how to resolve that problem? > Thanks a lot.



