[FieldTrip] Regarding analysis of MEG data

Shubhangi Saini shubhangisaini121 at gmail.com
Fri Apr 22 18:58:12 CEST 2022


Hi
This is my code
cfg = [];
cfg.dataset = 'C:\Users\hp\Documents\MATLAB\subject_1\MEG_data\4';
data_meg = ft_preprocessing(cfg,MEG_data);
for trialsel=1:10
chansel = 1; % this is the STIM channel that contains the trigger
figure
plot(data_meg.time{trialsel}, data_meg.trial{trialsel}(chansel, :))
xlabel('time (s)')
ylabel('channel amplitude (a.u.)')
title(sprintf('trial %d', trialsel));
end

And I am getting the following error please someone help me out.
Error using ft_read_header
unsupported header format "unknown"

Error in ft_preprocessing (line 404)
  hdr = ft_read_header(cfg.headerfile, headeropt{:});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20220422/934536cc/attachment.htm>


More information about the fieldtrip mailing list