Hello. I successfully load .mat files into a listbox. I also defined another listbox, but I want to display the variables inside of the file in another listbox.
function LoadedFiles_Callback(hObject, eventdata, handles)contents = cellstr(get(hObject,'String'));chosefile = contents{get(hObject,'Value')};set(handles.endlist, 'String', whos(chosefile));function Load_Callback(hObject, eventdata, handles)[filename, pathname] = uigetfile( ...{'*.mat','MAT-files (*.mat)'}, 'Pick .m data files', 'MultiSelect', 'on');thefile=fullfile(pathname,filename);set(handles.LoadedFiles,'String',thefile);
So second Load_Callback function works as intended. However, the first block of function generates error. Can anyone help with this? Thank you!
Best Answer