% Go in the directory where the % abcdAll_noA\framework\spls_fair20-5_fair_modeA_pub_noAnom_new_common_bmi_mental 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_7.mat') frworkNow=cfg.dir.frwork; for l=1:3 % number of significant modes cfg.gen.weight.flip = 1; % This just flips the image for better illustration purposes. if l==1 || l==2 || l==3 cfg.gen.weight.flip = 0; end 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(l,cfg,1); clear res end