Fernando,
I suspect that you have made a copy of spm_defaults.m under a new name of spm_my_defaults.m, where you modified the mask threshold value. This is not what you are supposed to do and which gave you "recursion limit" warning (recursion means that a function/script is calling itself).
If you only want the change the mask threshhold (e.g. to 0.01), your spm_my_defaults.m file only needs two lines of code:
global defaults;
defaults.mask.threshold = 0.01;
Nothing more.
Best wishes,
Andreas
===================================================
Andreas Finkelmeyer, Ph.D.
Academic Psychiatry, Institute of Neuroscience
Wolfson Research Centre, Campus for Ageing and Vitality
Newcastle University
Newcastle upon Tyne
NE4 5PL, UK
Tel.: +44 (0)191 208 1357
Web: www.ncl.ac.uk/ion
>-----Original Message-----
>From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On
>Behalf Of Fernanda Palhano
>Sent: 21 September 2015 20:18
>To: [log in to unmask]
>Subject: [SPM] Modify spm_defaults.m
>
>Hello,
>
>I am trying to modify the spm_defaults.m file in order to customise the mask
>threshold (defaults.mask.thresh). As explained in the file help, I have created a
>new file named spm_my_defauts.m in Matlab startup folder. When I try the
>spm_get_defaults command to verify the modification, I obtain:
>>> spm_get_defaults
>Execution failed: /Users/fernanda/Documents/MATLAB/spm_my_defaults.m
>Warning: Maximum recursion limit of 500 reached. Use
>set(0,'RecursionLimit',N)
>to change the limit. Be aware that exceeding your available stack space can
>crash MATLAB and/or your computer.
> In spm_my_defaults at 216
> In run at 57
> In spm at 1207
> In spm_my_defaults at 213
> In run at 57
> In spm at 1207
> .
> .
> .
> In spm_defaults at 213
> In spm_get_defaults at 28
>Defaults settings have been modified by file(s):
> /Users/fernanda/Documents/MATLAB/spm_my_defaults.m
>Modified fields: mask
>
>ans =
>
> cmdline: 0
> ui: [1x1 struct]
> renderer: 'zbuffer'
> images: [1x1 struct]
> mat: [1x1 struct]
> tbx: [1x1 struct]
> dicom: [1x1 struct]
> stats: [1x1 struct]
> mask: [1x1 struct]
> slicetiming: [1x1 struct]
> realign: [1x1 struct]
> coreg: [1x1 struct]
> unwarp: [1x1 struct]
> normalise: [1x1 struct]
> smooth: [1x1 struct]
> imcalc: [1x1 struct]
> old: [1x1 struct]
>
>When running a 1st level analysis I obtain these same errors. It seems that no
>change is been done in the masking step, even when I use, just to see if
>something happens, really lower thresholds (e.g. 0.01) than the spm default
>(0.8).
>
>Any help would be appreciated. Thanks in advance.
>Fernanda
|