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/
____________________________________________________
|