ERPLAB Toolbox is a free, open-source Matlab package for analyzing ERP data. It is tightly integrated with EEGLAB Toolbox, extending EEGLAB’s capabilities to provide robust, industrial-strength tools for ERP processing, visualization, and analysis. A graphical user interface makes it easy for beginners to learn, and Matlab scripting provides enormous power for intermediate and advanced users.
Description
[Error using fseek Invalid file identifier. Use fopen to generate a valid file identifier.]
my file is in the path but when i use fseek it turns uo the problem.
My code is shown as below:
dataNO = 50400; fileNO = 1; point = 0; finish = 50400;
dataBin = double(dataNO); fn = ('C3trace%05d.trc'); null ~= ('C3trace%05d.trc');
for j=0:1:fileNO s = sprintf(fn,j); fid = fopen(fn,'r','b');
if fid == null fprintf('Cannot open %s files \n',fn); system(pause) end
end
fseek(fid,0,'bof');
| Matlab version | [fill in] |