From: Jane on 12 Dec 2009 19:41 "Matt Fig" <spamanon(a)yahoo.com> wrote in message <hg1aeq$s01$1(a)fred.mathworks.com>... > pcode has nothing to do with nested functions. > > It is difficult to tell what is going wrong with your code from here. Did you try to put a DRAWNOW before the plotting function is called on initialization? > > Why are you using both GLOBAL variables and nested functions in one file? If you can't get it working, you can email it to me and I will look it over. I'm not using global variables. I was until I changed over to nested functions. I have now put drawnow in. But it doesn't seem to make a difference. I've also tried putting all of the code that creates the different uicontrols into a function, outputting the handle structure. Then tring to plot to the different axes. This also isn't working. I can't email the gui to you because of what it is doing. If I can't make any headway I will try and recreate the problem in a simpler example and email it to you if thats ok. Thanks to both of you for your help by the way.
From: Jane on 12 Dec 2009 20:01 > I'm not using global variables. I was until I changed over to nested functions. > I have now put drawnow in. But it doesn't seem to make a difference. > > I've also tried putting all of the code that creates the different uicontrols into a function, outputting the handle structure. Then tring to plot to the different axes. This also isn't working. > > I can't email the gui to you because of what it is doing. If I can't make any headway I will try and recreate the problem in a simpler example and email it to you if thats ok. > > Thanks to both of you for your help by the way. I've found the problem :D I had the handlevisibilty of the figure set to callback! So just calling the plotData function meant it wasn't allowed to enter the axes on the gui. Now fixed and working, I hope. Thanks again for your time Jane ps. I will now play with the profiler
From: Matt Fig on 12 Dec 2009 20:04 "Jane " <j.l.terry(a)hotmail.co.uk> wrote in message > I'm not using global variables. I was until I changed over to nested functions. > I have now put drawnow in. But it doesn't seem to make a difference. > > I've also tried putting all of the code that creates the different uicontrols into a function, outputting the handle structure. Then tring to plot to the different axes. This also isn't working. > > I can't email the gui to you because of what it is doing. If I can't make any headway I will try and recreate the problem in a simpler example and email it to you if thats ok. > > Thanks to both of you for your help by the way. Good enough. If you can recreate the problem in a simpler form I would be interested to know what the heck is going on.
First
|
Prev
|
Pages: 1 2 3 Prev: simulated ARMA model output Next: line scan along x direction of mesh plot |