/usr/share/doc/octave-gdf/gdf_writer.m is in octave-gdf 0.1.2-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | % function [VAROUT] = gdf_writer( COMMAND, VARIN )
%
% Create GDF files.
% Number of Inputs and Outputs depends on the Command.
%
% Commands:
%
% INIT: create a new writer instance
% handle = gdf_writer( 'Init' );
%
% CLEAR: remove writer instance
% handle = gdf_writer( 'Clear', handle );
%
% CLEAR ALL: remove all writer instances
% handle = gdf_writer( 'Clear All' );
%
% OPEN: create a new writer instance
% handle = gdf_writer( 'Open', handle, filename );
%
% CLOSE: create a new writer instance
% handle = gdf_writer( 'Close', handle );
%
% GETHEADER: returns current header struct
% header = gdf_writer( 'GetHeader', handle );
%
% SETHEADER: set header struct
% gdf_writer( 'SetHeader', handle, header );
%
% CREATESIGNAL: create a new signal (with specified index)
% gdf_writer( 'CreateSignal', handle, index );
%
% NEWSIGNAL: create a new signal (with first free index, which is returned)
% index = gdf_writer( 'NewSignal', handle, datatype, samplerate );
%
% RECORDDURATION: set record duration
% gdf_writer( 'RecordDuration', handle, seconds );
%
% EVENTCONFIG: set event configuration
% gdf_writer( 'EventConfig', handle, mode, samplerate );
%
% ADDSAMPLE: write a sample (physical units)
% gdf_writer( 'AddSample', handle, channel, value );
%
% ADDRAWSAMPLE: write a sample (raw)
% gdf_writer( 'AddRawSample', handle, channel, value );
%
% ADDVECSAMPLE: write a sample vector (physical units, multiple channels)
% gdf_writer( 'AddVecSample', handle, first_channel, values[] );
%
% BLITSAMPLES: write multiple samples (physical units, one channel)
% gdf_writer( 'BlitSamples', handle, channel, values[] );
%
% BLITRAWSAMPLES: write multiple samples (physical units, one channel)
% gdf_writer( 'BlitRawSamples', handle, channel, values[] );
%
% MODE1EV: write a mode 1 event
% gdf_writer( 'Mode1Ev', handle, timestamp, eventcode );
%
% MODE3EV: write a mode 3 event
% gdf_writer( 'Mode3Ev', handle, timestamp, eventcode, channel, duration );
%
|