File: gdf_reader.m

package info (click to toggle)
libgdf 0.1.3-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,352 kB
  • sloc: cpp: 7,096; makefile: 65; sh: 49
file content (41 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41



% function [SIGNALS, HEADER, EVENTS] = gdf_reader( FILENAME, OPTION, VALUE, ... )
%
% Load GDF files.
%
% Input Arguments:
%
%   FILENAME:   Full pathname of the file to load (including extension)
%
% Output Arguments:
%
%   SIGNALS:    Contains all signals (channels) stored in the GDF file.
%               The output format (cell array, matrix) can be changed
%               with the "MULTIRATESIGNALS" option.
%
%   HEADER:     Header Structure that contains all Meta-Information
%
%   EVENTS:     Event Structure
%
%   OPTIONS:    Options are provided as Option-Value pairs.
%       "DATAFORMAT"    possible values:
%           "MATRIX"    Signals are arranged in a matrix. To use this format with multirate
%			data, "UPSAMPLEMODE" must be specified. This causes all signals to
%			be upsampled to the highest sampling rate in the file.
%           "SINGLE"    (default) A cell array is returned, that contains each signal
%                       as a separate vector.
%           "GROUP"     All signals with the same sampling rates are grouped
%                       into matrices, which are returned in a cell array.
%
%       "UPSAMPLEMODE"  determines how upsampling of multirate data is performed
%			when "DATAFORMAT" is set to "MATRIX".
%			"NEAREST"	Nearest Neighbor interpolation
%			"LINEAR"	Linear Interpolation
%
%       "DATAORIENTATION"   wether channels should be arranged in rows or columns
%           "COL"           (default) each signal is a column vector.
%           "ROW"           each signal is a row vector.
%
%       "FORCEMODE3EVENTS"  events are converted to mode 3.