Prev: Dos Application in Matlab Problem
Next: How to develop a GUI that allows the user to draw (needed for OCR project)
From: David on 20 May 2010 15:08 Hello there, I had the same problem just today. You have to check your M-code and delete all the 'close' commands, e.g. 'close all'. It seems that, when this command is issued, the handles of the GUI are erased from a list of registered handles in the active layer, so they are tagged as 'invalid'. I know it's an very old post, but if any of you don't find this solution helpful, please let me know. --- David Ponce "G.A.M. " <x0zero(a)gmail.com> wrote in message <fb7cdt$8ak$1(a)fred.mathworks.com>... > Hi. Thank you for pointing out my mistake. Unfortunately, > that was only a mistake in what I posted here, not in my > code. I still have the problem in my code where it seems > like figures have handle visibility off when it is set to > on. I cannot figure it out... the code seems correct. > > roberson(a)ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in > message <fb4ukg$g6q$1(a)canopus.cc.umanitoba.ca>... > > In article <fb4l5m$4u4$1(a)fred.mathworks.com>, G.A.M. > <x0zero(a)gmail.com> wrote: > > >Hello. I have been stumped by this problem for several days > > >now. Using the tips provided previously, I have been > > >debugging the problem. However, I still get an 'Invalid > > >handle' error when using get('Tag', 'figureM'). > > > > You can't get('Tag', 'figureM'). You can, though, > > > > get(findobj('Tag', 'figureM')) > > > > get() must be passed a handle (or list of handles) to > operate on. > > -- > > I was very young in those days, but I was also rather dim. > > -- Christopher Priest > |