now I am facing problem with loading a file from listbox2. I want to select all items (.mat files) in listbox 2 as I press a pushbutton and tabulate their variables in guitable.
here is my code:
listn = cellstr(get(handles.listbox2,'String'));
for i=1:length(listn)
filen=listn{i};
Pathn=get(handles.path_1,'String');
tbldata(i)=load(fullfile(Pathn,filen));
tblval(i,:)={filen,tbldata(1,i).var1,tbldata(1,i).var2,tbldata(1,i).var3};
end
set(handles.datatable,'data',tblval);
it is giving error with "load fullfile". it is not getting the items (.mat file) in 'filen'.
Please help me.