Home > . > makeMSFModes.m

makeMSFModes

PURPOSE ^

%% features = makeMSFModes(trials,CV)

SYNOPSIS ^

function features = makeMSFModes(trials,CV,command)

DESCRIPTION ^

%%  features = makeMSFModes(trials,CV)
%%   trials: ntasks x ntrials cell array of data
%%   CV.parms contains
%%           .nlags
%%           .winSize
%%           .winShift
%%   features: ntasks x ntrials cell array of featurized data

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function features = makeMSFModes(trials,CV,command)
0002 %%%  features = makeMSFModes(trials,CV)
0003 %%%   trials: ntasks x ntrials cell array of data
0004 %%%   CV.parms contains
0005 %%%           .nlags
0006 %%%           .winSize
0007 %%%           .winShift
0008 %%%   features: ntasks x ntrials cell array of featurized data
0009 
0010 if nargin > 2 && strcmp(command,'make')
0011   features = CV;
0012   return;
0013 end
0014 
0015 nlags = CV.parms.nlags;
0016 winSize = CV.parms.winSize;
0017 winShift = CV.parms.winShift;
0018 meanSubtract = CV.parms.meanSubtract;
0019 
0020 features = msfize(windowize(lagize(trials,nlags),winSize,winShift),...
0021     meanSubtract);

Generated on Tue 07-Feb-2006 12:02:57 by m2html © 2003