READ - read from a BJG file
[DATA] = READ(FILENAME, HEADER, CHANNEL_TYPE, CHANNEL_NUMBERS, T0, T1)
Reads data from an BJG file, which are all float32 / single data channels
Inputs:
FILENAME - the filename to read
HEADER - the header data for the file; if empty, it will be read
CHANNEL_TYPE - the channel type to read, can be 'time' or 'ai' (analog input)
CHANNEL_NUMBERS - an array of channel numbers to read (e.g., [1 2 3])
T0 - time to begin reading; can be -Inf to indicate the beginning of the record
T1 - time to end reading; can be Inf to indicate the end of the record