Functions | Variables

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

Functions

function plotDcdTrigSamp (dcdTgt, epochDcdTgt, unlockInfo)%%%%%%nEpochs
 hist (dcdTgt.samp, trialLen)%One stimulation frequency or two?if unlockInfo.main.triggeredData%One title(sprintf('Trigger loc.Trial length%i.%s[%iHz]'
 stimFreq (1))
bold else Two title (sprintf('Trigger loc.Trial length%i.%s[%i-%iHz]', trialLen, fromWhere, stimFreq(1), stimFreq(2)),'fontweight','bold') end xlabel('Sample'
bold else Two bold ylabel ('Count','FontWeight','bold')%See each trial figure
for plot (epochDcdTgt(:, iEpoch))
for axis title (num2str(iEpoch))

Variables

 trialLen = unlockInfo.epoch.trialSampLen
 stimFreq = unlockInfo.decoder.stimFreq(find(unlockInfo.decoder.stimFreq))
Name in the plot if unlockInfo
main triggeredData 
fromWhere = 'triggered'
end end Histogram of
dcdTrigger sample location 
figure
 fontweight
bold else Two FontWeight
for iEpoch = 1:nEpochs
for axis tight
for axis pause

Function Documentation

hist ( dcdTgt.  samp,
trialLen   
)
for plot ( epochDcdTgt(:, iEpoch  ) 
function plotDcdTrigSamp ( dcdTgt  ,
epochDcdTgt  ,
unlockInfo   
)
stimFreq (  ) 
bold else Two title ( sprintf('Trigger loc.Trial length%i.%s[%i-%iHz]', trialLen, fromWhere, stimFreq(1), stimFreq(2))  ,
'fontweight ,
'bold'   
)
for axis title ( num2str(iEpoch  ) 
bold else Two bold ylabel ( 'Count'  ,
'FontWeight ,
'bold'   
)

Variable Documentation

end end Histogram of dcdTrigger sample location figure
bold else Two FontWeight
else fromWhere = 'triggered'
for iEpoch = 1:nEpochs
for axis pause
stimFreq = unlockInfo.decoder.stimFreq(find(unlockInfo.decoder.stimFreq))
for axis tight