Functions |
if unlockInfo main
triggeredData elseif | isfield (unlockInfo.epoch,'spec')||isfield(unlockInfo.epoch |
| Plot trials for | plot (freqVals, data(:, 3, iTrial, 1)) |
| Plot trials for | title (num2str(iTrial)) |
| switch | lower (dcdType)%case 'hsd'%%For HSD%Finding freq.position freqPos |
| first harmonic end | freqVals (freqPos)%Find electrode position dcdChIndx |
Variables |
| | function [dcdVals, unlockInfo] |
| | timeVals = dcdData.tspec |
if unlockInfo main
triggeredData elseif spec | freqVals = dcdData.fspec |
| Plot trials for | iTrial = 1:30 |
| Plot trials for | pause |
| Plot trials for end end | stimFreq = unlockInfo.decoder.stimFreq |
| | dcdCh = unlockInfo.decoder.dcdCh |
| | dcdType = unlockInfo.decoder.dcdType |
| | tgtStim = unlockInfo.decoder.targets |
| | nTgt = unlockInfo.decoder.nTgts |
| for | iTgt |
| main | frequency [~, freqPos(2, iTgt),~] = intersect(freqVals,2*tgtStim(iTgt)) |