@@ -76,6 +76,10 @@ function imapLMMdisplay(StatMap,normalized,backgroundfile,cmap,colormaprange,dis
76
76
foldername= [' imapLMMoutput-' opt .type ];
77
77
end
78
78
79
+ if ~exist(foldername , ' dir' )
80
+ mkdir(' foldername' );
81
+ end
82
+
79
83
label= StatMap .label ;
80
84
maptemp= StatMap .map ;
81
85
if ~ismatrix(maptemp )
@@ -86,9 +90,7 @@ function imapLMMdisplay(StatMap,normalized,backgroundfile,cmap,colormaprange,dis
86
90
cr= colormaprange ;
87
91
switch opt .type
88
92
case ' model' % output model fitting and criterion map
89
- %% create folder
90
- mkdir(foldername)
91
- % Rsquared
93
+ %% Rsquared
92
94
figure(' NumberTitle' ,' off' ,' Name' ,' R^2 of model' ,' Position' ,[1 1 scrsz(3 ) scrsz(4 )/2 ]);
93
95
maprangetmp= sort(squeeze(max(abs(maptemp(1 : 2 ,mask )))));
94
96
mapmax= maprangetmp(round(length(maprangetmp )*cr ));
@@ -170,8 +172,7 @@ function imapLMMdisplay(StatMap,normalized,backgroundfile,cmap,colormaprange,dis
170
172
cd([' ./' foldername ]);print(' -depsc2' ,' -r300' ,' Model Criterion(with background)' );cd(' ..' );
171
173
end
172
174
case ' fixed' % output Fvalue map and mask according to MCC
173
- %% create folder
174
- mkdir(foldername)
175
+ %%
175
176
% pmptemp=StatMap.Pmap;
176
177
msktemp=StatMap.Pmask;
177
178
% output Statvalue map, Statvalue map with P<0.05 and Statvalue map
@@ -243,8 +244,7 @@ function imapLMMdisplay(StatMap,normalized,backgroundfile,cmap,colormaprange,dis
243
244
end
244
245
end
245
246
case ' random' % output Fvalue map, beta map and mask according to MCC
246
- %% create folder
247
- mkdir(foldername )
247
+ %%
248
248
% pmptemp=StatMap.Pmap;
249
249
msktemp= StatMap .Pmask ;
250
250
% output Statvalue map, Statvalue map with P<0.05 and Statvalue map
@@ -283,8 +283,7 @@ function imapLMMdisplay(StatMap,normalized,backgroundfile,cmap,colormaprange,dis
283
283
end
284
284
end
285
285
case {' predictor beta' , ' model beta' } % output F/Tvalue map, beta map, pvalue map, and mask according to MCC
286
- %% create folder
287
- mkdir(foldername )
286
+ %%
288
287
betatmp= StatMap .beta ;
289
288
% pmptemp=StatMap.Pmap;
290
289
msktemp= StatMap .Pmask ;
0 commit comments