MATLAB: Non-existent handles field uitable1

guihandlesuitable

Im trying to display data on a previously empty uitable created in guide. But when i try to use
h=handles.uitable1;
set(h,'Data',handles.wide)
in its script, i get an error saying
Reference to non-existent field 'uitable1'.
so i've inserted a test line
disp(handles)
which actually didn't show a part for uitable1 or any other gui elements. what should i do?

Best Answer

after some more research i've just found what's wrong.
its about the way i run it. i was double-clicking the .fig file in the current folder.(i thought 2 files were running together when i did this.)
writing the common name for .fig and .m file in the command window creates 'handles.uitable1'
thanks.
Related Question