Dear Luca,
Out of completeness, just to point out that there is actually a function
call that will set a breakpoint at the beginning of the function that
executes a module:
cfg_util('dbstop',1,1); % for job 1, module 1
Best regards,
Guillaume.
On 16/11/16 12:09, PRESOTTO LUCA wrote:
> Thank you,
>
> extremely appreciated!
>
> Luca
>
> ________________________________________
> Da: Guillaume Flandin <[log in to unmask]>
> Inviato: mercoledì 16 novembre 2016 12.47.23
> A: PRESOTTO LUCA
> Cc: [log in to unmask]
> Oggetto: Re: [SPM] Finding out which file is called from the GUI
>
> Dear Luca,
>
> what you can do is type the following before executing a batch:
>
>>> dbstop in matlabbatch/private/cfg_run_cm at 18
>
> then execute the batch of interest and when MATLAB stops, type:
>
>>> functions(cm.prog)
>
> Best regards,
> Guillaume.
>
>
> On 11/11/16 12:17, PRESOTTO LUCA wrote:
>> Dear experts,
>>
>> From time to time I like to read SPM programs to see how some things are done, or, at times, to create some tweaked/modified version out of necessity/curiosity. The thing is that I never manage to understand which program file my batch system is actually calling. Is there a way to know this?
>>
>> As an example, I wanted today to see the code of the new segment/normalize in SPM12. I don't have any clue which file actually does things. I understood that files that might be involved are: spm_preproc, spm_preproc_run, spm_run_preproc (for the old version?) and spm_preproc8. Which is which??
>>
>> Thank you,
>> Luca
>>
>>
>> Rispetta l’ambiente: non stampare questa mail se non è necessario.
>> Respect the environment: if it's not necessary, don't print this mail.
>>
>> IL TUO 5XMILLE AL SAN RAFFAELE DI MILANO
>>
>> Devolvi il tuo 5 per mille all’Ospedale San Raffaele: perché al centro della Ricerca ci sei TU. CODICE FISCALE: 07636600962, nel riquadro RICERCA SANITARIA. Non c’è cura, senza ricerca. Non c’è ricerca, senza il tuo 5xmille. Scopri come su http://www.5xmille.org
>>
>> [http://www.5xmille.org/img/731x129.jpg]
>>
>
> --
> Guillaume Flandin, PhD
> Wellcome Trust Centre for Neuroimaging
> University College London
> 12 Queen Square
> London WC1N 3BG
>
>
> Rispetta l’ambiente: non stampare questa mail se non è necessario.
> Respect the environment: if it's not necessary, don't print this mail.
>
> IL TUO 5XMILLE AL SAN RAFFAELE DI MILANO
>
> Devolvi il tuo 5 per mille all’Ospedale San Raffaele: perché al centro della Ricerca ci sei TU. CODICE FISCALE: 07636600962, nel riquadro RICERCA SANITARIA. Non c’è cura, senza ricerca. Non c’è ricerca, senza il tuo 5xmille. Scopri come su http://www.5xmille.org
>
> [http://www.5xmille.org/img/731x129.jpg]
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|