Dear All,
I am trying to convert an edf file. I only want some channels, so I
created a channel file (.mat with the labels). When I launch the batch,
I have an error 'dimension mismatch'.
The D object size is correct (i.e. 80 channels that I want to look at),
and the indexes in 'chaninds/chansel' (according to the step we're in)
are correct as well, proving that the channel file contains the correct
labels/is read properly. However, the data it reads from the header
includes all channels (i.e. 85), so throwing that error when trying to
write the read data (dimension 85*4000) into the object D (dimension
80*4000).
I haven't encountered that error on Matlab 2014b, but I did using Matlab
2013a. It seems that ft_read_data, although it has the correct chaninds
as input, returns the data from all channels.
Do you have an idea on what is happening?
(SPM12, version up to date)
Thanks!
Best,
Jessica
|