Skip to content

Commit

Permalink
Update attention_plots.m
Browse files Browse the repository at this point in the history
  • Loading branch information
huangpei90 authored Jul 15, 2020
1 parent c423ef5 commit 328c1e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions attention_plots.m
Original file line number Diff line number Diff line change
@@ -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).
%
Expand All @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 328c1e7

Please sign in to comment.