Hi all, Here's what I'm attempting... 1) I define a figure handle 'h=plot(x,y)' in one function. 2) I declare 'h' as global 3) I recall this 'h' in a different function, trying to use it with 'copyobj(h,handles.axes1)' where axes1 is a different axes than where 'h' was originally plotted.
I get an error with copyobj, that 'h' is an invalid handle.
As a check, I tried using the copyobj command, similarly, but within the first function where 'h' was originally defined. And that works just fine.
Am I to understand that I cannot use figure handles this way, declaring them as globals, between multiple functions? Is there a way around this? Thanks all!