function t = fieldnames(obj) % Fieldnames of a NIFTI-1 object %__________________________________________________________________________ % Copyright (C) 2005-2017 Wellcome Trust Centre for Neuroimaging % % $Id: fieldnames.m 7147 2017-08-03 14:07:01Z spm $ if isfield(obj.hdr,'magic') t = {... 'dat' 'mat' 'mat_intent' 'mat0' 'mat0_intent' 'intent' 'diminfo' 'timing' 'descrip' 'cal' 'aux_file' }; else error('This should not happen.'); end