% Go in the directory where the % abcdAll_noA_schaeferbuckchoi\framework\spls_fair20-5_fair_modeA_pub_schaeferbuckchoi_noAnom_common_bmi is. % In case you run the whole experiment with your own names, then you have % to get in the framework directory whose figures you want to plot and load % the appropriate cfg file. load('cfg_815.mat') frworkNow=cfg.dir.frwork; for l=1:3 % number of significant modes display(['Plot and clean level ' num2str(l)]); reses=dir(fullfile(frworkNow,'res',['level' num2str(l)],'res_*')); load(fullfile(frworkNow,'res',['level' num2str(l)],reses(1).name)); plot_spls_atlas1(l,cfg,1); clear res end