Hello,
There are matlab scripts in $FSLDIR/etc/matlab that can
write matlab arrays to nifti-files.
Many Regards
Matthew
> Hi,
>
> Is there a way to calculate the power spectrum for a timeseries
> saved in a
> text file (like taken from the a design.mat file) within matlab?
>
> As far a I understand, fslpspec does not take text files as input.
> One alternative might therefore be to first write the ascii data
> into a
> nifti file, but i couldn't find an easy way to do this.
>
> I would appreciate any sugestion about how to
> - run a util like fslpspec on text data or
> - get the data from a text file into a nifti file.
>
> (I am aware that one could use the 1dfft program in afni, or simply
> matlab.
> But I'd prefer to use only fsl tools/utils, if possible.)
>
>
> Thanks in advance!
> Guido
>
|