MATLAB: File name entry into gui table

uitable

GUIDE newbie questions
Using GUIDE, I cannot figure out how to enter a file name acquired through uigetfile into a table cell. Any halp for this simple funciton greatly appreciated.

Best Answer

filename = uigetfile('*.jpg'); %for example
curdata = get(handles.uitable1, 'Data'); %example handle name
curdata{3,2} = filename; %3,2 is example location
set(handles.uitable1, 'Data', curdata); %same example handle name