1234567891011121314151617181920212223242526 |
- %plot LFP files
- %requires eeglab
- clear; close all; clc;
- addpath(genpath('/Volumes/DATA/matlab/eeglab/'));
- drIN = 'MAT_EEG/';
- files = dir([drIN '*.mat']);
- %file index to plot
- fI = 1;
- fnEEG = files(fI).name;
- %make color array
- cols = {'k';'r';'k';'r';'k';'r';'k';'r'};
- colors = [];
- for i = 1:8
- for j = 1:4
- colors = cat(1,colors,{cols{i}});
- end
- end
- %plot data
- eegplot(eegData, 'srate', eegFS, 'winlength', 3, 'spacing', 0.001, 'color',colors );
|