Laubach_ExampleCode.zip Code for analysis of neuroexplorer (.nex) files in MATLAB. This bit of MATLAB code loads .nex files into a rudimentary database in MATLAB, plots peri-event rasters, and then does wavelet packet analysis by classes, and classifies with regularized discriminant analysis (RDA). This code is a little complex in that it requires MATLAB, R, and the e1701, class, verification, and R.matlab libraries for R, and understanding of both languages. However, we include an example (.nex) datafile of 9 neurons recorded simulataneously from rats performing a fixed foreperiod reaction time task, and show, in principle, how we might analyze it.
EnsembleCode.zip Main set of code for our
lab's ensemble analysis, including preprocessing, feature extraction, discriminant pursuit, and classification. Main files are runEnsembleAnalysis.m, TestEnsembleAnalysis.m, and SubEnsembleAnalsysis.m. Includes an example data set, testData.mat, which you can play with. Requires Matlab 6, R 1.8, including libraries e1701 and class.
FDABatch.r R code for PDA (Leave-one-out)
FDABatchCV10.r R code for PDA (10 fold CV)
LVQBatch.r R code for LVQ (Leave-one-out)
LVQBatchCV10.r R code for LVQ (10 fold CV)
sSVMBatch.r R code for SVM (Leave-one-out)
sSVMBatchCV10.r R code for SVM (10 fold CV)