I'm afraid I have no idea here. If the variables 'Dims', 'Affine', 'MF', 'MG'
and 'Transform' exist in the file you selected, then I can't see why
it should give a warning about output arguments not being assigned.
Best regards,
-John
> >> I get a warning that one or more output arguments are not assigned
> >> during call to 'load_params' and presume this is to do with Tr but I do
> >> not know how to correct this.
>
> I have had the same message when running get_orig_coord.m in SPM99 (for PET
> images). I admit I don't understand the full nature of normalisation
> process but with regard to this program I've noticed that there is a
> variable called "Transform", not "Tr" in *sn3d.mat. Replacing "Tr"
> with "Transform" allows this array to be loaded.
>
> However I get a Transform array with dimensions 392x3, so the program bombs
> out when it tries to reshape Tr(:,:,:,2) since this dimension doesn't
> exist.
>
> I get what look like a sensible results for the original coordinates when
> Tr is ignored, so it may be that only the Affine matrix is needed(?!?), but
> it would be nice to know for sure.
> wrote:
> >> I am trying to use John Ashburner's get_orig_coord.m in SPM99. Can
>
> someone
>
> >> tell me what the Tr variable is in the line
> >>
> >> >> [Dims,Affine,MF,MG,Tr] = load_params(matname);
> >>
> >> I get a warning that one or more output arguments are not assigned
> >> during call to 'load_params' and presume this is to do with Tr but I do
> >> not know how to correct this.
> >
> >If you are loading an _sn3d.mat file created in SPM99, then I can't figure
> >out what the cause of the problem is. The Tr variable is a reshaped
>
> version
>
> >of the Transform variable in the _sn3d.mat file. This contains the
> >coefficients for the DCT bases that describe the warps.
--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
|