From 328c1e790f720cdc3e102ff864097774e9d0555a Mon Sep 17 00:00:00 2001 From: huangpei90 Date: Wed, 15 Jul 2020 13:53:57 +0800 Subject: [PATCH] Update attention_plots.m --- attention_plots.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/attention_plots.m b/attention_plots.m index b3bb477..e799d6f 100644 --- a/attention_plots.m +++ b/attention_plots.m @@ -1,4 +1,4 @@ -function attention_plots(res) +function attention_plots(res_file) % Plot the real fMRI results in a similar manner to the simulated data (see % attention_simulation_plots.m). % @@ -7,10 +7,9 @@ function attention_plots(res) % % attention_plots(filename) -if ~exist('res', 'var') || isempty(res) +if ~exist('res_file', 'var') || isempty(res_file) % default to example pre-computed results - res = load(fullfile(fileparts(mfilename('fullpath')), ... - 'sample_results', 'real_fMRI_results.mat')); + res_file = fullfile(fileparts(mfilename('fullpath')),'sample_results', 'real_fMRI_results.mat'); end cmap = [8 81 156; @@ -30,6 +29,7 @@ function attention_plots(res) cmap = cmap/255; lmap = lmap/255; +res = load(res_file); res = res.results_exclude; %convert results into matrix form