I'm looking for away to access subfoders and run script ('TESTING_4000.m') in each subfolder. Not sure what I'm missing in the code.
if true % code
folder = 'C:\Deterministic\New Objectives_Log';list = dir(fullfile(folder,'Log_4000*'));nFile = {list([list.isdir]).name};C = cell(1,numel(nFile));for k = 1:numel(nFile) C{k} = run(fullfile(folder,nFile{k},'TESTING_4000.m')); endend
Can anyone help please.
Best Answer