Hi Aaron, this probably means that you don't have your SPM software folder in your MATLAB path. Add this path permanently (just the root folder, no sub-folders) using editpath, and you should not get this error message anymore. Volkmar On Mon, 24 Sep 2007, aaron qin wrote: > Hi all. > > I was converting dicom to nifti through spm5. But I met an "undefined > function or variation nifti" error. My computer is macbook and the > matlab version is 2006a. Please help me. Thank you very much. > > -- Volkmar Glauche - Department of Neurology [log in to unmask] Universitaetsklinikum Freiburg Phone 49(0)761-270-5331 Breisacher Str. 64 Fax 49(0)761-270-5416 79106 Freiburg http://fbi.uniklinik-freiburg.de/