MATSEL Select rows, columns, and epochs from given multi-epoch data matrix

Usage: >> [dataout] = matsel(data,frames,framelist);
>> [dataout] = matsel(data,frames,framelist,chanlist);
>> [dataout] = matsel(data,frames,framelist,chanlist,epochlist);

Inputs:
data   
input data matrix (chans,frames*epochs)
frames   
frames (data columns) per epoch (0 -> frames*epochs)
framelist   
list of frames per epoch to select (0 -> 1:frames)
chanlist   
list of chans to select (0 -> 1:chans)
epochlist   
list of epochs to select (0 -> 1:epochs)

Note: The size of dataout is (length(chanlist), length(framelist)*length(epochlist))

Author: Scott Makeig, SCCN/INC/UCSD, La Jolla, 5-21-96

See the matlab file matsel.m (may require other functions)

Back to functions