I am trying to use data between different GUI. First I tried with global variables, but it seems to be very dodgy. Hence I decided to use setappdata / getappdata. However, these define a value for an object within a GUI. How do I access the object from the other GUI, where I need the data?
Here is my example: in the 1st file, I have the callback function: setappdata(handles.fileTarget,'sim_path',dir_name)
an in the other, when I try: title = getappdata(handles.fileTarget,'sim_path')
I obv get an error because the handles.fileTarget is not present in this GUI. How do I call it?