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 |