Dear Mouna, LST is a third party toolbox so best would be to contact its author as the problem seems to come from the way an SPM function is called from this toolbox: http://www.statistical-modeling.de/lst.html#contact As for the warnings, they should disappear with SPM12. Best regards, Guillaume. On 28/04/17 12:01, Mouna Sahnoun wrote: > Dear, > > I have this error when compiling the LST from SPM toolbox : > > Running 'LST: Lesion segmentation (LPA)' > > ------------------------------------------------------------------------ > This is LST www.statistical-modeling.de/lst.html > Algorithm: Lesion prediction algorithm (LPA) > If anything goes wrong: LST_log_20170428_112809.txt > Number of jobs to process: 1 > Coregister to reference images: no > > Working on job 1 out of 1 (100%) > Warning: Escape sequence 'U' is not valid. See 'help sprintf' for valid escape sequences. >> In ps_LST_lpa at 188 > In matlabbatch\private\cfg_run_cm at 29 > In cfg_util>local_runcj at 1510 > In cfg_util at 830 > In cfg_ui>MenuFileRun_Callback at 1186 > In gui_mainfcn at 96 > In cfg_ui at 53 > Current directory C:Warning: Escape sequence 'U' is not valid. See 'help sprintf' for valid escape sequences. >> In ps_LST_lpa at 190 > In matlabbatch\private\cfg_run_cm at 29 > In cfg_util>local_runcj at 1510 > In cfg_util at 830 > In cfg_ui>MenuFileRun_Callback at 1186 > In gui_mainfcn at 96 > In cfg_ui at 53 > Preprocessing of GG-366-FLAIR-0.7mm.nii Failed 'LST: Lesion segmentation (LPA)' > Index exceeds matrix dimensions. > In file "C:\Users\asus\Desktop\SPM8\spm8\toolbox\Seg\spm_maff8.m" (v4152), function "M2P" at line 249. > In file "C:\Users\asus\Desktop\SPM8\spm8\toolbox\Seg\spm_maff8.m" (v4152), function "affreg" at line 111. > In file "C:\Users\asus\Desktop\SPM8\spm8\toolbox\Seg\spm_maff8.m" (v4152), function "spm_maff8" at line 27. > In file "C:\Users\asus\Desktop\SPM8\spm8\toolbox\LST\ps_LST_spm_preproc_run.m" (v6217), function "run_job" at line 105. > In file "C:\Users\asus\Desktop\SPM8\spm8\toolbox\LST\ps_LST_spm_preproc_run.m" (v6217), function "ps_LST_spm_preproc_run" at line 42. > In file "C:\Users\asus\Desktop\SPM8\spm8\toolbox\LST\ps_LST_lpa.m" (???), function "ps_LST_lpa" at line 249. > > The following modules did not run: > Failed: LST: Lesion segmentation (LPA) > > > Could You please help me correcting for this error ! > Best ! > -- Guillaume Flandin, PhD Wellcome Trust Centre for Neuroimaging University College London 12 Queen Square London WC1N 3BG