% Go in the directory where the % abcdAll_noA_aal3\framework\spls_fair20-5_fair_modeA_pub_aal3_new_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_583.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