[FieldTrip] ft_read_header didn't work on the matlab opened from terminal
胡益衡
yhhu2020 at ion.ac.cn
Thu Aug 29 12:02:18 CEST 2024
Dear all,
I suddenly found my ft_read_header function could not work and gave errors as bellow if I opened the matlab from terminal.
>> hdr = ft_read_header('hyh_raw_trans_ref_tsss.fif');
Transforming MEG channels according to the device to head transform from the data
306 MEG channel locations transformed
Error using ft_read_header
Undefined function 'fiff_read_epochs' for input arguments of type 'char'.
But ft_read_header works when I open matlab directly clicking the desktop MATLAB icon. In both cases, I add fieldtrip folder to the path and execute the ft_defaults function before I run ft_read_header.
Can someone tell me the reason?
Thanks,
Yiheng Hu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240829/9dd4fbc8/attachment.htm>
More information about the fieldtrip
mailing list