% as an example: % mdm.XTC_RTC = {'nameoffile.vtc','nameoffile.prt'}; % to store the lists we found (findfiles) use mdm.XTC_RTC = [vtcs(:), prts(:)]; % the final result must have two columns: % - first column the VTC filenames % - second column the PRT filenames