Dear all,
Doubtless another elementary error.....
So I have a bunch of MEG data, epoched, with some trials marked as bad. I want to remove the bad trials to cut down on the size of the files. However, when I do, I get this response:
??? Error using ==> mat2file
Problem writing data (1).
Error in ==> file_array.subsasgn>subfun at 132
mat2file(sobj,dat,va{:});
Error in ==> file_array.subsasgn at 70
subfun(sobj,double(dat),args{:});
Error in ==> meeg.subsasgn at 29
this.data.y = subsasgn(this.data.y, subs, dat);
Error in ==> spm_eeg_remove_bad_trials at 73
Dnew(:, :, i) = D(:, :, goodtrials(i));
Any suggestions gratefully received.
Duncan
|