Use guidata(hObject, handles) for non-callback functions?
1 view (last 30 days)
I am in the process of writing a shared function, say "function sharingiscaring()" to used for different CallbackFcns.
I realize this shared function "function sharingiscaring()" will generate some cell arrays, say "care1", "care2", that I would like to use in other callback functions.
In this case, is it necessary to add in commands such as
and also end the "function sharingiscaring()" with
like what is usually done for callback functions?
I will appreciate any help since I just started learning GUI and would like to make sure my code is written correctly...Thank you again for reading!