Question on the usage of SetAppData

  • Follow


Hi
I have a GUI with many different windows and functions. To make it easier to keep track of things and have the seperate windows communicate, I set any needed data as application data in the base workspace -> setappdata(0, 'DataStructure', DataStructure).

I was wondering if there is any reason why I should avoid doing this and rather attach the data to the gui figure or controls (setappdata(handles.figure,...)). 
Are there pitfalls or possible errors I could encounter by always setting my data to the 'base'? 
What is the best programming practice?

Thanks
0
Reply James 12/12/2010 12:34:05 PM


0 Replies
516 Views

(page loaded in 0.021 seconds)

Similiar Articles:













7/23/2012 1:56:01 AM


Reply: