Dear Marco,

thank you for your response, it helped! I was not smart enough to make sure of the function name - it is spm_write_vol, not **_vols. It works now, thank you again!

Regards,
Natalia

> Date: Tue, 11 Feb 2014 09:10:33 +0100
> From: [log in to unmask]
> Subject: Re: [SPM] Error while using spm_write_vols
> To: [log in to unmask]
>
> Hello Natalia,
>
> spm_write_vols is called by passing a structure and the matrix to write
> to disk, as in
>
> spm_write_vols(V, vol);
>
> The error you are getting indicates that the function cannot be found,
> or that you did not pass the arguments correctly. To see if the function
> is available to Matlab, type
>
> which spm_write_vols
>
> in Matlab's command window. It may also be necessary to have spm up and
> running for this, although I am not sure about that. If it is found, try
> modifying the way you called the function, if not, include spm's main
> folder in the Matlab search path and try again.
>
> Cheers,
> Marko
>
> Natalia Yakunina wrote:
> > Dear all,
> >
> > when I use spm_write_vols it gives the following error:
> >
> > Undefined function or method 'spm_write_vols' for input arguments of
> > type 'struct'.
> >
> > Does anybody know the reason?
> > Thank you.
> >
> > Sincerely,
> > Natalia
>
> --
> ____________________________________________________
> PD Dr. med. Marko Wilke
> Facharzt für Kinder- und Jugendmedizin
> Leiter, Experimentelle Pädiatrische Neurobildgebung
> Universitäts-Kinderklinik
> Abt. III (Neuropädiatrie)
>
>
> Marko Wilke, MD, PhD
> Pediatrician
> Head, Experimental Pediatric Neuroimaging
> University Children's Hospital
> Dept. III (Pediatric Neurology)
>
>
> Hoppe-Seyler-Str. 1
> D - 72076 Tübingen, Germany
> Tel. +49 7071 29-83416
> Fax +49 7071 29-5473
> [log in to unmask]
>
> http://www.medizin.uni-tuebingen.de/kinder/epn/
> ____________________________________________________