Dear Nick,
To be on the safe side, you can use:
surf_data = surf.cdata();
so that it works in the same way whether surf.cdata is a file_array or a
usual numeric array (this would depend on the exact format of the GifTI
file).
Best regards,
Guillaume.
On 29/12/17 16:12, Nicholas Blauch wrote:
> A ha! OK, here's the solution:
>
> surf = gifti('beta_0001.gii');
> surf_data = numeric(surf.cdata); % surf.cdata is a filearray object, numeric converts a filearray to numerical data.
>
> best,
> Nick
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|