Reply-To: | | [log in to unmask][log in to unmask]>:
> Dear Charlotte > > V as in V=spm_vol(fullfile(basedir(..))) is a matlab structure. > It contains several fields, among which "dt" and "fname". > You access these with V.dt, V.fname etc. > See here what a matlab structure is > https://nl.mathworks.com/help/matlab/ref/struct.html > > Now, if instead of > V=spm_vol(fullfile(basedir(..))) > you call the output with a different name, say Vout > Vout=spm_vol(fullfile(basedir(..))) > > then you will have access to Vout.dt, Vout.fname, and so on. > > hope this helps > > On Wed, 7 Oct 2020 at 16:35, charlotte sørensen <[log in to unmask]> > wrote: > >> Dear SPM experts >> >> I am looking for an overview on the sub functions from SPM you can use >> when programming in MATLAB using the SPM software package. >> >> For understanding: I have a script doing ALFF analysis where I use sub >> functions as: >> - V=spm_vol(fullfile(basedir(..))) >> - Y = spm_read_vols(V) >> - Vout >> - Vout.dt >> - Vout.fname >> >> I can find the .m files on spm_vol and spm_real_vols, but the Vout, >> Vout.dt and Vout.fname I can not find any information on. >> >> >> Can anyone explain of refer to a link? >> >> Best regards, >> Charlotte Sørensen, MSc. in Neuroimaging >> >[log in to unmask] |