2 % FEFOPEN opens and reads FEF file
10 % <A HREF=
"ftp://sigftp.cs.tut.fi/pub/eeg-data/standards/cenf060.zip ">About CEN/TC251</A>
12 % $Id:
fefopen.m 2205 2009-10-27 12:18:15Z schloegl $
13 % Copyright (c) 1998,2004,2008 Alois Schloegl <a.schloegl@ieee.org>
14 % This is part of the BIOSIG-toolbox http:
16 % This library is free software; you can redistribute it and/or
17 % modify it under the terms of the GNU Library General Public
18 % License as published by the Free Software Foundation; either
19 % Version 3 of the License, or (at your option) any later version.
24 HDR.FILE.FID = fopen(HDR.FileName,
'r');
34 tag=fread(HDR.FILE.FID,1,TYP_OID16);
35 len=fread(HDR.FILE.FID,1,
'uint16');
36 while ~feof(HDR.FILE.FID),
37 value=fread(HDR.FILE.FID,len,
'uint8');
39 tmp.TAG = sprintf(
'%x',tag);
41 tmp.VAL = value(1:min(len,10))
';
48 tag=fread(HDR.FILE.FID,1,TYP_OID16);
49 len=fread(HDR.FILE.FID,1,'uint16
');