From: Andrea on 3 Apr 2010 14:57 Hi, I have a similar problem. I have a GUI with more axes, I work in an external m file using the handle of the GUI. What I would like to do is something like : text(gui_handle.axes1,0,0,'hello world'); but text command doesn't take axes as params, so what i do is the following: axes(gui_handle.axes1); text(0,0,'hello world'); but instead of printing in axes1, it open up a new figure1 and plot the text there. Any ideas?
From: ImageAnalyst on 3 Apr 2010 15:21 "Andrea " <andrea.alessandre...(a)gmail.com> Try this: axes(gui_handle.axes1); gui_handle.axes1 gca See if they both put out exactly the same number to the command window. If they don't, you didn't switch axes for some reason. Maybe you can try setappdata() and getappdata().
From: Andrea on 3 Apr 2010 17:25 You are right, the numbers are different. Can you give me an example o how to use setappdata() and getappdata() to solve this problem. I couldn't find it on the mathworks help.
From: ImageAnalyst on 3 Apr 2010 21:30 On Apr 3, 5:25 pm, "Andrea " <andrea.alessandre...(a)gmail.com> wrote: > You are right, the numbers are different. > > Can you give me an example o how to use setappdata() and getappdata() to solve this problem. I couldn't find it on the mathworks help. ------------------------------------------------------------- You're right that there's no examples in the help for those functions, but look up "application data" in the R2010a help and there is an example with explanation there.
|
Pages: 1 Prev: Creating Noise Next: SPECT Projection Reconstruction & Sinograms |