Description: RES = TDFWRITEDATAEMG (FILENAME,STARTTIME,FREQUENCY,EMGMAP,LABELS,EMGDATA) writes
to FILENAME the EMG data sampling start time ([s]) and sampling rate ([Hz]),
the correspondance map between EMG logical channels and physical channels stored
in EMGMAP, the EMG channel labels stored in LABELS and the EMG data stored in EMGDATA.
EMGMAP must be a [nSignals,1] array such that EMGMAP(logical channel) == physical channel.
LABELS must be a matrix whose rows are the EMG channel labels.
EMGDATA must be an array of size nSignals x nSamples such that
EMGDATA(s,:) stores the samples of the EMG channel s.
res = TDFWRITEDATAEMG (...,FORMAT) specifies the format for the EMG data block.
Valid entries for FORMAT are bytrack (default), byframe .
See Tdf File format documentation for further details.
If the file specified does not exist, a new one is created.
RES is 0 in case of success, -1 otherwise.
To Search:
File list (Check if you may need any files):
tdfReadDataEmg.m