# doc-cache created by Octave 10.1.0
# name: cache
# type: cell
# rows: 3
# columns: 52
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
Contents


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1277
 BIOSIG/T200 contains Matlab/Octave functions to access various biosignal dataformats
 For simiplicity we call all supported files "Biosig"-files.  
 For the the list of supported formats see the references below. 


 A united interface is provided for all data formats:
  	SOPEN 	opens an Biosignal file (and reads all header information)
	SREAD	reads data blockwise
       SEOF	checks end-of-file
  	STELL	returns position of file handle
	SSEEK	moves file handle to position
  	SREWIND moves file handle to beginning 
	SCLOSE 	closes an biosignal file 
  	SWRITE 	writes data blocks 

       GETFILETYPE identifies the type (format) of a file. 
	SLOAD 	Opens, reads and closes signal files. 
	SSAVE 	Opens, writes and closes signal files. 
		SLOAD and SSAVE provide a simple interface to signal files. 
	SAVE2GDF converts data into GDF-format
 
 UTILITY FUNCTIONS. In general, it is not recommended 
	to use them directly. Use them only if you absolute sure what 
	you are doing. You are warned! 
 	
       sload('eventcodes.txt')   loads latest version of table for event codes
	SAVE2BKR
	OPENLDR
	BKROPEN
	CNTOPEN
	SDFERROR
	GDFDATATYP
       PHYSICALUNITS
       LEADIDCODEXYZ        

 REFERENCES: 
 [1] http://pub.ist.ac.at/~schloegl/biosig/
 [2] http://biosig.sf.net/




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 BIOSIG/T200 contains Matlab/Octave functions to access various biosignal dat...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
adb2event


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1520
 ADB2EVENT loads and artifact scoring file of the 
   artifact database (ADB) of sleep EEG [1]
   and converts the data into event information 
 
  [s,H] = sload(filename.edf)     
  H.EVENT = adb2event([H.FILE.Name,'.txt], H.SampleRate);

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF

 Reference(s):
 [1] Artifact database of sleep EEG. Available online http://www.dpmi.tu-graz.ac.at/ADB/
 [2] A. Schlögl, P. Anderer, M.-J. Barbanoj, G. Klösch,G. Gruber, J.L. Lorenzo, O. Filz, M. Koivuluoma, I. Rezek, S.J. Roberts,A. Värri, P. Rappelsberger, G. Pfurtscheller, G. Dorffner
       Artifact processing of the sleep EEG in the "SIESTA"-project,
       Proceedings EMBEC'99, Part II, pp.1644-1645, 4-7. Nov. 1999,Vienna, Austria.
 [3] A. Schlögl, P. Anderer, S.J. Roberts, M. Pregenzer, G.Pfurtscheller.
       Artefact detection in sleep EEG by the use of Kalman filtering.
       Proceedings EMBEC'99, Part II, pp.1648-1649, 4-7. Nov. 1999,Vienna, Austria.
 [4] A. Schlögl, P. Anderer, M.-J. Barbanoj, G. Dorffner, G. Gruber, G. Klösch, J.L. Lorenzo, P. Rappelsberger, G. Pfurtscheller.
       Artifacts in the sleep EEG - A database for the evaluation of automated processing methods.
       Proceedings of the Third International Congress of the World Federation of Sleep Research Societies (WFSRS). Editors: H. Schulz. P.L. Parmeggiani, and M. Chase. Sleep Research Online 1999:2 (Supplement 1), p. 586. 
       available online: http://www.sro.org/cftemplate/wfsrscongress/indiv.cfm?ID=19998586



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 ADB2EVENT loads and artifact scoring file of the 
   artifact database (ADB)...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
bdf2biosig_events


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1225
 BDF2BIOSIG_EVENTS converts BDF Status channel into BioSig Event codes. 

  HDR = bdf2biosig_events(HDR [,Mode])   

 INPUT:
   HDR is the header structure generated by SOPEN, SLOAD or mexSLOAD
	from loading a Biosemi (BDF) file.
	Specifically, HDR.BDF.ANNONS contains the info of the status channel. 
   Mode [default = 4]
	determines how the BDF status channel is converted into 
 	the event table HDR.EVENT. Currently, the following modes are 
	supported: 
	 1: epoching information is derived from bit17
	    only lower 8 bits are supported
	 2: suggested decoding if standardized event codes (according to 
	    .../biosig/doc/eventcodes.txt) are used  
	 3: Trigger Input 1-15, raising and falling edges
	 4: [default] Trigger Input 1-15, raising edges
	 5: Trigger input 1-8, raising and falling edges are considered
	 6: Trigger input 1-8, only raising edges are considered
	 7: bit-based decoding 
	99: not recommended, because it could break some functionality in BioSig 
 Output: 	
   HDR.EVENT contains the generated Event table.  	
 
 see also: doc/eventcodes.txt, doc/header.txt, SOPEN, SLOAD
 
 
 Referenzes: 
 [1] http://www.biosemi.com/faq/file_format.htm
 [2] http://www.biosemi.com/faq/trigger_signals.htm



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 71
 BDF2BIOSIG_EVENTS converts BDF Status channel into BioSig Event codes.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
biosig_str2double


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2360
 STR2DOUBLE converts strings into numeric values
  [NUM, STATUS,STRARRAY] = STR2DOUBLE(STR) 

  Because of a name space conflict, this function is renamed to
  BIOSIG_STR2DOUBLE(...). An alternative is STR2ARRAY from the NaN-toolbox.
  
  STR2DOUBLE can replace STR2NUM, but avoids the insecure use of EVAL 
  on unknown data [1]. 

    STR can be the form '[+-]d[.]dd[[eE][+-]ddd]' 
	d can be any of digit from 0 to 9, [] indicate optional elements
    NUM is the corresponding numeric value. 
       if the conversion fails, status is -1 and NUM is NaN.  
    STATUS = 0: conversion was successful
    STATUS = -1: couldnot convert string into numeric value
    STRARRAY is a cell array of strings. 

    Elements which are not defined or not valid return NaN and 
        the STATUS becomes -1 
    STR can be also a character array or a cell array of strings.   
        Then, NUM and STATUS return matrices of appropriate size. 

    STR can also contain multiple elements.
    default row-delimiters are: 
        NEWLINE, CARRIAGE RETURN and SEMICOLON i.e. ASCII 10, 13 and 59. 
    default column-delimiters are: 
        TAB, SPACE and COMMA i.e. ASCII 9, 32, and 44.
    default decimal delimiter is '.' char(46), sometimes (e.g in 
	Tab-delimited text files generated by Excel export in Europe)  
	might used ',' as decimal delimiter.

  [NUM, STATUS] = STR2DOUBLE(STR,CDELIM,RDELIM,DDELIM) 
       CDELIM .. [OPTIONAL] user-specified column delimiter
       RDELIM .. [OPTIONAL] user-specified row delimiter
       DDELIM .. [OPTIONAL] user-specified decimal delimiter
       CDELIM, RDELIM and DDELIM must contain only 
       NULL, NEWLINE, CARRIAGE RETURN, SEMICOLON, COLON, SLASH, TAB, SPACE, COMMA, or ()[]{}  
       i.e. ASCII 0,9,10,11,12,13,14,32,33,34,40,41,44,47,58,59,91,93,123,124,125 

    Examples: 
	str2double('-.1e-5')
	   ans = -1.0000e-006

 	str2double('.314e1, 44.44e-1, .7; -1e+1')
	ans =
	    3.1400    4.4440    0.7000
	  -10.0000       NaN       NaN

	line ='200,300,400,NaN,-inf,cd,yes,no,999,maybe,NaN';
	[x,status]=str2double(line)
	x =
	   200   300   400   NaN  -Inf   NaN   NaN   NaN   999   NaN   NaN
	status =
	    0     0     0     0     0    -1    -1    -1     0    -1     0

 Reference(s): 
 [1] David A. Wheeler, Secure Programming for Linux and Unix HOWTO.
    http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 STR2DOUBLE converts strings into numeric values
  [NUM, STATUS,STRARRAY] = S...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
bkropen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 179
 BKROPEN opens BKR file
 However, it is recommended to use SOPEN instead .
 For loading whole data files, use SLOAD. 

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 74
 BKROPEN opens BKR file
 However, it is recommended to use SOPEN instead .



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
bni2hdr


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 198
 BNI2HDR converts BNI header information into BioSig Header information
	HDR = BNI2HDR(HDR)

 INPUT:
   HDR.H1 contains ascii header 

 OUTPUT:
   HDR.Label
   HDR.T0 
       ...

 see also: SOPEN 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 BNI2HDR converts BNI header information into BioSig Header information
	HDR ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 16
bv2biosig_events


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 569
 BV2BIOSIG_EVENTS converts VMRK marker information BioSig Event codes. 
  according to biosig/doc/eventcodes.txt. 
  Currently, the convention of the BerlinBCI is implemented and supported. 

  HDR = bv2biosig_events(arg1)   

  arg1 can be an HDR-struct containg  HDR.EVENT.Desc 
  or a struct containing EVENT.Desc 
  or a cell-array Desc
  or a char-array Desc 
 
  Warning: Approximately 32 (out of 510) events are currently not supported. 
  For your data, you can check this with this command: 
  HDR.EVENT.Desc(HDR.EVENT.TYP==0) 
 
 see also: doc/eventcodes.txt



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 70
 BV2BIOSIG_EVENTS converts VMRK marker information BioSig Event codes.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
cntopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 237
 CNTOPEN opens neuroscan files (but does not read the data). 
 However, it is recommended to use SOPEN instead of CNTOPEN.
 For loading whole Neuroscan data files, use SLOAD. 

 see also: SLOAD, SOPEN, SREAD, SCLOSE, SEOF, STELL, SSEEK.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 60
 CNTOPEN opens neuroscan files (but does not read the data).



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 24
convert2single_sweep_atf


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 62
undocumented function: k = convert2single_sweep_atf (filename)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 62
undocumented function: k = convert2single_sweep_atf (filename)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
edfannot2evt


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 99
 EDFANNOT2EVT converts the EDF+ annotation channel into an event table

  
 see also: SLOAD, SOPEN



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 70
 EDFANNOT2EVT converts the EDF+ annotation channel into an event table



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
eload


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 291
 ELOAD loads EVENT data 
 Event information is often stored in different formats. 
 ELOAD tries to load different formats into a unified 
 form 
 
 HDR = eload(filename)

 filename	Filename of Event information 
 HDR.EVENT contains the EVENT information
 
 
 see also: SLOAD, SVIEW, SOPEN 




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 ELOAD loads EVENT data 
 Event information is often stored in different form...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
famosopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 183
 FAMOSOPEN opens FAMOS file
 However, it is recommended to use SOPEN instead .
 For loading whole data files, use SLOAD. 

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 78
 FAMOSOPEN opens FAMOS file
 However, it is recommended to use SOPEN instead .



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
fefopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 186
 FEFOPEN opens and reads FEF file 

       HDR=fefopen(HDR)


 see also: SOPEN 

 References: 
 <A HREF="ftp://sigftp.cs.tut.fi/pub/eeg-data/standards/cenf060.zip ">About CEN/TC251</A> 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 34
 FEFOPEN opens and reads FEF file 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
fepi2gdf


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 94
function [s,H]=fepi2gdf(fn);
 FEPI2GDF Freiburger epilepsy database converted into GDF format



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
function [s,H]=fepi2gdf(fn);
 FEPI2GDF Freiburger epilepsy database converted...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
fltopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 178
 FLTOPEN opens FLT file
 However, it is recommended to use SOPEN instead .
 For loading whole data files, use SLOAD.

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 74
 FLTOPEN opens FLT file
 However, it is recommended to use SOPEN instead .



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
gdfdatatype


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 433
 GDFDATATYPE converts number into data type according to the definition of the GDF format [1]. 

   [datatyp,limits,datatypes,numbits,GDFTYP]=gdfdatatype(gdftyp)


 See also: SOPEN, SREAD, SWRITE, SCLOSE

 References:
 [1] A. Schlögl, O. Filz, H. Ramoser, G. Pfurtscheller, GDF - A general dataformat for biosignals, Technical Report, 2004.
 available online at: http://www.dpmi.tu-graz.ac.at/~schloegl/matlab/eeg/gdf4/TR_GDF.pdf. 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 GDFDATATYPE converts number into data type according to the definition of th...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
get_current_username


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 214
 GET_CURRENT_USERNAME returns the username of the user running
    the current Matlab or Octave instance. This is used in biosig
    when storing processed data in GDF format as the "Technician"
    information.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 GET_CURRENT_USERNAME returns the username of the user running
    the curren...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
getfiletype


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 344
 GETFILETYPE get file type 

 HDR = getfiletype(Filename);
 HDR = getfiletype(HDR.FileName);

 HDR is the Header struct and contains stuff used by SOPEN. 
 HDR.TYPE identifies the type of the file [1,2]. 

 see also: SOPEN 

 Reference(s): 
   [1] http://pub.ist.ac.at/~schloegl/matlab/eeg/
   [2] http://pub.ist.ac.at/~schloegl/biosig/TESTED 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 27
 GETFILETYPE get file type 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
gtfopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 213
 GTFOPEN reads files in the Galileo Transfer format (GTF) 

 HDR = gtfopen(Filename,PERMISSION);

 HDR contains the Headerinformation and internal data

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
 GTFOPEN reads files in the Galileo Transfer format (GTF) 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
hdr2ascii


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 325
 HDR2ASCII converts the header information into ASCII text. 

   HDR2ASCII(HDR [, ...]);
	converts file header HDR 
   HDR2ASCII(file [, ...]);
	converts header of file 
   HDR2ASCII(arg,dest_file);
	converts file header HDR and writes it into dest_file
   HDR=HDR2ASCII(...);
	returns header HDR 
  
 see also: SLOAD, SOPEN



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 59
 HDR2ASCII converts the header information into ASCII text.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
iopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 390
 IOPEN opens image files for reading and writing and returns 
       the header information. Many different IMAGE formats are supported.

 HDR = iopen(Filename, PERMISSION, [, CHAN [, MODE]]);

 PERMISSION is one of the following strings 
	'r'	read header
	'w'	write header

 HDR contains the Headerinformation and internal data

 see also: SLOAD, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 IOPEN opens image files for reading and writing and returns 
       the head...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
iread


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 118
 IREAD reads image data 

 [S,HDR] = iread(HDR)

 See also: fread, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 24
 IREAD reads image data 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
leadidcodexyz


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
undocumented function: HDR = leadidcodexyz (arg1)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
undocumented function: HDR = leadidcodexyz (arg1)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
loadlexi


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 71
 LOADLEXI loads LEXICORE EEG data

  [data,HDR]=loadlexi(filename); 





# name: <cell-element>
# type: sq_string
# elements: 1
# length: 33
 LOADLEXI loads LEXICORE EEG data



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
mat2sel


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 54
undocumented function: HDR = mat2sel (FileName, fnout)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 54
undocumented function: HDR = mat2sel (FileName, fnout)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
matread


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 577
 MATRREAD Loads (parts of) data stored in Matlab-format 

 [HDR,data,timeindex]=matread(HDR,block_number, [startidx, endidx])
 This is the recommended use for Matlab-files generated from ADICHT data
 Before using MATREAD, HDR=MATOPEN(filename, 'ADI', ...) must be applied.

 [HDR,data,timeindex]=matread(HDR,Variable_Name, [startidx, endidx])
 can be used for other Matlab4 files. 
 Variable name is a string which identifies a Matlab Variable.
 Before using MATREAD, HDR=MATOPEN(filename, 'r', ...) must be applied.

 see also: EEGREAD, FREAD, EEGOPEN, EEGCLOSE  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 MATRREAD Loads (parts of) data stored in Matlab-format 

 [HDR,data,timein...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
mwfopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 181
 MWFOPEN reads MFER files 

 HDR = mwfopen(Filename,PERMISSION);

 HDR contains the Headerinformation and internal data

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 26
 MWFOPEN reads MFER files 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
nk2hyp


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 50
undocumented function: [hyp, g1, g2] = nk2hyp (fn)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 50
undocumented function: [hyp, g1, g2] = nk2hyp (fn)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
opendicom


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 377
 OPENDICOM is an auxillary function to SOPEN for 
 opening of DICOM files for reading ECG waveform data
 
 Use SOPEN instead of OPENDICOM  
 
 See also: fopen, SOPEN, 

 References: 
 [1] http://www.dclunie.com/dicom-status/status.html#BaseStandard2003
 [2] http://medical.nema.org/Dicom/supps/sup30_lb.pdf
 [3] http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/DICOM.html



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 OPENDICOM is an auxillary function to SOPEN for 
 opening of DICOM files for...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
openeep


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 182
 OPENEEP opens EEProbe files (but does not read the data). 
 However, it is recommended to use SOPEN instead of OPENEEP.

 see also: SLOAD, SOPEN, SREAD, SCLOSE, SEOF, STELL, SSEEK.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
 OPENEEP opens EEProbe files (but does not read the data).



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
openiff


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 146
 OPENIFF is an auxillary function to SOPEN for 
 opening of IFF files 
 
 Use SOPEN instead of OPENIFF  
 
 See also: fopen, SOPEN

 References: 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 OPENIFF is an auxillary function to SOPEN for 
 opening of IFF files 
 
 Use...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
openldr


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 656
 OPENLDR loads neuroscan LDR files
 LDR = OPENLDR(Filename [, PERMISSION [, Mode]]);
 LDR = OPENLDR(LDR [, PERMISSION [, Mode]]);

 LDR is a struct with the following fields
   LDR.FileName 	Name of LDR-file
   LDR.Label_Out	Labels of output channels
   LDR.Label_In	Labels of input channels
   LDR.RR		re-referencing matrix
   LDR.datatype	'REREF_MATRIX' indicates this datatype

 PERMISSION	'r'	reads LDR file
 		'w'	writes LDR file
 		'r+w'	reads and writes LDR file 
			(useful in combination with RESCALE-Mode) 

 Mode [optional] 'RESCALE' performs a rescaling of the weights
		sum of positive weights becomes +1
		sum of negative weights becomes -1




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 OPENLDR loads neuroscan LDR files
 LDR = OPENLDR(Filename [, PERMISSION [, M...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
openxlt


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 150
 OPENXLT is an auxillary function to SOPEN for 
 opening of XLTEK files 
 
 Use SOPEN instead of OPENXLT  
 
 See also: fopen, SOPEN, 

 References: 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 OPENXLT is an auxillary function to SOPEN for 
 opening of XLTEK files 
 
 U...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
openxml


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 135
 OPENXML reads XML files and tries to extract biosignal data

 This is an auxilary function to SOPEN. 
 Use SOPEN instead of OPENXML.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 60
 OPENXML reads XML files and tries to extract biosignal data



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
physicalunits


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
undocumented function: [out, scale] = physicalunits (arg1)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
undocumented function: [out, scale] = physicalunits (arg1)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
save2bkr


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1511
 SAVE2BKR loads EEG data and saves it in BKR format
 The following data formats are supported:
	CNT, EDF, BKR, MAT, etc. format

       HDR = save2bkr(sourcefile [, destfile [, option]]);  

       HDR = eegchkhdr();
	HDR = save2bkr(HDR,data);

   sourcefile	sourcefile wildcards are allowed
   destfile	destination file in BKR format 
	if destfile is empty or a directory, sourcefile but with extension .bkr is used.
   options
       gain            Gain factor for unscaled EEG data (e.g. old Matlab files) 
       'removeDC'      removes mean
       'regressEOG k:l,m:n'     removes EOG (channels m:n) from EEG (channels k:l)  
       'autoscale k:l'	uses only channels from k to l for scaling
       'detrend k:l'	channels from k to l are detrended with an FIR-highpass filter.
       'PhysMax=XXX'	uses a fixed scaling factor; might be important for concanating BKR files 
			+XXX and -XXX correspond to the maximum and minimum physical value, resp. 
 		You can concanate several options by separating with space, komma or semicolon 

   HDR		Header, HDR.FileName must contain target filename
   data	data samples

 Examples: 
   save2bkr('/tmp/*.cnt',[],'autoscale 5:30');
	converts all CNT-files from subdir /tmp/ into BKR files 
       and saves them in the current directory 
   save2bkr('/tmp/*.cnt','/tmp2/','autoscale 5:30, PhysMax=200');
	converts all CNT-files from subdir /tmp/ into BKR files 
       and saves them in the directory /tmp2/
	


 see also: EEGCHKHDR, REGRESS_EOG, SLOAD



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SAVE2BKR loads EEG data and saves it in BKR format
 The following data forma...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
save2gdf


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 296
 SAVE2GDF loads EEG data and saves it in GDF format
    It has been tested with data of the following formats:
       Physiobank, BKR, CNT (Neurscan), EDF, 

       HDR = save2gdf(sourcefile [, destfile [, option]]);  

	HDR = save2gdf(HDR,data);


 see also: SLOAD, SOPEN, SREAD, SCLOSE, SWRITE



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SAVE2GDF loads EEG data and saves it in GDF format
    It has been tested wi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
save2mm


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 54
undocumented function: HDR = save2mm (fn, MM, montage)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 54
undocumented function: HDR = save2mm (fn, MM, montage)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
sclose


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 234
 SCLOSE closes the file with the handle HDR
 [HDR] = sclose(HDR)
    HDR.FILE.status = -1 if file could not be closed.
    HDR.FILE.status = 0 indicates the file has been closed.

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SCLOSE closes the file with the handle HDR
 [HDR] = sclose(HDR)
    HDR.FILE...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
scpopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 208
 SCPOPEN reads and writes SCP-ECG files 

 SCPOPEN is an auxillary function to SOPEN for 
 opening of SCP-ECG files for reading ECG waveform data
 
 Use SOPEN instead of SCPOPEN  
 
 See also: fopen, SOPEN, 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 40
 SCPOPEN reads and writes SCP-ECG files 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
seof


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 192
 SEOF checks for end of signal-file
    status = seof(HDR)

 returns 1 if End-of-EDF-File is reached
 returns 0 otherwise

 See also: SOPEN, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
 SEOF checks for end of signal-file
    status = seof(HDR)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
sload


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1766
 SLOAD loads signal data of various data formats
 [signal,header] = sload(FILENAME)
 [signal,header] = sload(FILENAME,CHAN)
       read selected channels in list CHAN
       CHAN=0 [default], reads all channels

 [signal,header] = sload(dir('f*.emg') ... )
 [signal,header] = sload('f*.emg' ...)
  	loads all files 'f*.emg'

 [signal,header] = sload(..., PropertyName1,PropertyValue1,...)
  	PropertyName(s)		PropertyValue
	'UCAL'			-		data uncalibrated (not scaled)
				'On'		data uncalibrated (not scaled)
				'Off'		data calibrated (scaled) [default]
	'OVERFLOWDETECTION'	'On'		[default] 
				'Off'		no overflow detection 
	'OUTPUT'		'single'	single precision data [default: 'double'] 
	'NUMBER_OF_NAN_IN_BREAK'   N		inserts N NaN's between two concatanated segments
						default: N=100
	'SampleRate'		Fs		target sampling rate (supports resampling)
	'EOG_CORRECTION'	'On'		uses two-channel regression analysis - if possible 
				'Off'		no correction of EOG artifacts [default]
       'CNT32', '32bit'			force CNT 32bit format 
	'BDF'			N		decodes BDF status channel into eventtable 
		using Mode = N. For details see HELP BDF2BIOSIG_EVENTS
	
 The list of supported formats is available here: 
 http://pub.ist.ac.at/~schloegl/biosig/TESTED

    SLOAD loads all the data (of the selected channels)
    at once. In case of large data files, This can be 
    a problem. Instead, You can use 
       HDR = sopen(FILENAME,'r');
       [s,HDR]=sread(HDR,duration_segment1); 
       [s,HDR]=sread(HDR,duration_segment2); 
       ....
       [s,HDR]=sread(HDR,duration_segmentM); 
       HDR = sclose(HDR); 

 see also: SVIEW, SOPEN, SREAD, SCLOSE, SAVE2BKR, BDF2BIOSIG_EVENTS, TLOAD

 In order to increase the speed, install mexSLOAD.mex from biosig4c++

 Reference(s):



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SLOAD loads signal data of various data formats
 [signal,header] = sload(FIL...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
sopen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 87
undocumented function: [HDR, H1, h2] = sopen (arg1, PERMISSION, CHAN, MODE, arg5, arg6)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
undocumented function: [HDR, H1, h2] = sopen (arg1, PERMISSION, CHAN, MODE, a...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
sread


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 649
 SREAD loads selected segments of signal file

 [S,HDR] = sread(HDR [,NoS [,StartPos]] )
 NoS       Number of seconds, default = 1 (second)
 StartPos  Starting position, if not provided the following data is read continously from the file. 
                    no reposition of file pointer is performed

 HDR=sopen(Filename,'r',CHAN);
 [S,HDR] = sread(HDR, NoS, StartPos)
      	reads NoS seconds beginning at StartPos
 
 [S,HDR] = sread(HDR, inf) 
      	reads til the end starting at the current position 
 
 [S,HDR] = sread(HDR, N*HDR.Dur) 
	reads N trials of an BKR file 
 

 See also: fread, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 45
 SREAD loads selected segments of signal file



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
srewind


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 167
 SREWIND sets the file position to the beginnig of the data block
 [HDR]=eegrewind(HDR)

 See also: FREWIND, SOPEN, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SREWIND sets the file position to the beginnig of the data block
 [HDR]=eegr...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
ssave


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 412
 SSAVE saves signal data in various data formats
 
 Currently are the following data formats supported: 
    EDF, BDF, GDF, BKR, SND/AU, (WAV, AIF)
    and WSCORE event file

 HDR = ssave(HDR,data);
 HDR = ssave(FILENAME,data,TYPE,Fs);

 FILENAME      name of file
 data  signal data, each column is a channel
 TYPE 	determines dataformat
 Fs	sampling rate	

 see also: SSAVE, SOPEN, SWRITE, SCLOSE, doc/README




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SSAVE saves signal data in various data formats
 
 Currently are the followi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
sseek


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 319
 SSEEK repositions file position indicator
  HDR = sseek(HDR,offset,origin)

  offset       number of samples relative to origin
  origin
        -1,'bof':   begin of file 
         0,'cof':   current file position 
        +1,'eof':   end of file 

 See also: SOPEN, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 75
 SSEEK repositions file position indicator
  HDR = sseek(HDR,offset,origin)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
stell


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 473
 STELL returns file position of signal data files
 HDR = stell(HDR)
 returns the location of the HDR-signal file position indicator in the specified file.  
 Position is indicated in Blocks from the beginning of the file.  If -1 is returned, 
 it indicates that the query was unsuccessful; 
 HDR-struct is a struct obtained by SOPEN.

 HDR.FILE.POS contains the position of the HDR-Identifier in Blocks

 See also: SOPEN, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 STELL returns file position of signal data files
 HDR = stell(HDR)
 returns ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
swrite


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 86
 SWRITE writes signal data. 
 HDR = swrite(HDR,data)
 Appends data to an Signal File 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 27
 SWRITE writes signal data.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
tload


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 877
 TLOAD loads and triggers signal data.  

 [signal,HDR] = tload(FILENAME, TI, [CHAN,] EVENTFILE, AI)

 S = reshape(signal,HDR.size) returns the corresponding 3-dim Matrix 

 FILENAME  name of file, or list of filenames, wildcards '*' are supported. 
	    The files must contain the trigger information. 
 TI	    trigger interval [t1,t2,t3] in seconds, relative to TRIGGER point
	    The interval [t1,t2] defines the trigger segment, t3 is 
	    optional and determines the number of NaN's after each trial. 
 CHAN      list of selected channels
           default=0: loads all channels
 EVENTFILE file of artifact scoring 
 AI	    Artifactinterval [t1,t2] in seconds, relative to TRIGGER point  	
	    Trials with artifacts within this segment are removed. 
	    By default AI=TI, AI enables to select the critical period. 


 see also: SLOAD, SVIEW, SOPEN, ARTIFACT_SELECTION



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 38
 TLOAD loads and triggers signal data.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
tlvread


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 261
 FEFOPEN opens and reads FEF file 

       HDR=fefopen(HDR)


 see also: SOPEN 

 References: 
 [1] <A HREF="ftp://sigftp.cs.tut.fi/pub/eeg-data/standards/cenf060.zip ">About CEN/TC251</A> 
 [2] http://telecom.htwm.de/ASN1/ber.htm
 [3] http://asn1.elibel.tm.fr



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 34
 FEFOPEN opens and reads FEF file 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
wscore2event


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1353
 WSCORE2EVENT loads WSCORE event files 
   and converts the data into event information 

 EVENT = wscore2event(f0,fc)
       f0 event file 
       fc event codes

 see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE, SWRITE, SEOF

 Reference(s):
 [1] Artifact database of sleep EEG. Available online http://www.dpmi.tu-graz.ac.at/ADB/

 [2] A. Schlögl, P. Anderer, M.-J. Barbanoj, G. Klösch,G. Gruber, J.L. Lorenzo, O. Filz, M. Koivuluoma, I. Rezek, S.J. Roberts,A. Värri, P. Rappelsberger, G. Pfurtscheller, G. Dorffner
       Artifact processing of the sleep EEG in the "SIESTA"-project,
       Proceedings EMBEC'99, Part II, pp.1644-1645, 4-7. Nov. 1999,Vienna, Austria.
 [3] A. Schlögl, P. Anderer, S.J. Roberts, M. Pregenzer, G.Pfurtscheller.
       Artefact detection in sleep EEG by the use of Kalman filtering.
       Proceedings EMBEC'99, Part II, pp.1648-1649, 4-7. Nov. 1999,Vienna, Austria.
 [4] A. Schlögl, P. Anderer, M.-J. Barbanoj, G. Dorffner, G. Gruber, G. Klösch, J.L. Lorenzo, P. Rappelsberger, G. Pfurtscheller.
       Artifacts in the sleep EEG - A database for the evaluation of automatedprocessing methods.
       Proceedings of the Third International Congress of the World Federation of Sleep Research Societies (WFSRS). Editors: H. Schulz. P.L. Parmeggiani, and M. Chase. Sleep Research Online 1999:2 (Supplement 1), p. 586. 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 WSCORE2EVENT loads WSCORE event files 
   and converts the data into event i...





