Functions |
first harmonic end | freqVals (freqPos)%Find boundaries for plotting startIndx |
| stimFreq (2) dataFeatures |
Variables |
| function [dataFeatures, unlockInfo] |
| dcdCh = unlockInfo.decoder.dcdCh |
| dcdType = unlockInfo.decoder.dcdType |
| tgtStim = unlockInfo.decoder.targets |
| nTgt = unlockInfo.decoder.nTgts |
Find electrode position | dcdChIndx = find(strcmp(unlockInfo.main.elecLoc,dcdCh)) |
index in data file of channel
chosen for decoding Removing
unimportant frequencies | rawData = featData.data |
| freqVals = featData.fspec |
Find freq vals in range of
freq of interest Finding freq
position | freqPos = nan(2,nTgt) |
for | iTgt |
main | frequency [~, freqPos(2, iTgt),~] = intersect(freqVals,2*tgtStim(iTgt)) |
| endIndx = 60 |
Plotting Odd epochs spectrum | oddData = squeeze(rawData(:,dcdChIndx,:,1)) |
for | iTrial |