MATLAB: (GUI variable saving) guidata vs appdata

appdataguihandle graphics

Dear all
I need your opinion on the matter. In order to allow the user to enter various parameters, my program has a GUI figure. The problem is that the user by interacting with my program, creates a big amount of data, which have to be stored and processed every time. My problem is that when the user hovers his mouse on my figure, I need to go trough a lot of these data.
So, saving where, these data, will ensure the maximum speed for my program? Should I go with the appdata, or with the guidata (saving the variable directly into the guihandle)?
Thanks in advance

Best Answer

guidata() Just uses setappdata() internally. That being said: setappdata() will be faster since you don't have the overhead of what's inside guidata().