Functions | Variables

unlock/analysis/andres/Code/decodeEpochs.m File Reference

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))

Function Documentation

first harmonic end freqVals ( freqPos   ) 
if unlockInfo main triggeredData elseif isfield ( unlockInfo.  epoch,
'spec  
)
switch lower ( dcdType   ) 
Plot trials for plot ( freqVals  ,
data(:, 3, iTrial, 1)   
)
Plot trials for title ( num2str(iTrial  ) 

Variable Documentation

main frequency[~, freqPos(2, iTgt),~] = intersect(freqVals,2*tgtStim(iTgt))
if unlockInfo main triggeredData elseif spec freqVals = dcdData.fspec
function[dcdVals, unlockInfo]
Initial value:
 decodeEpochs(dcdData,unlockInfo)
%
%
%
%
%
%
%
%

% Getting vbles
data = dcdData.data
for iTgt
Initial value:
 1:nTgt 
    [~,freqPos(1,iTgt),~] = intersect(freqVals,tgtStim(iTgt))
Plot trials for iTrial = 1:30
Plot trials for pause
end end stimFreq = unlockInfo.decoder.stimFreq