<div dir="ltr">Dear Andreas,<div><br></div><div>I still don't quite understand the tutorial.</div><div><pre class="gmail-code gmail-matlab" style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px;white-space:pre-wrap;background-color:rgb(245,245,245)"><font size="1">spikeTrials =
label: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">{</span><span class="gmail-co2" style="box-sizing:border-box;color:rgb(51,153,51)">'sig002a_wf'</span> <span class="gmail-co2" style="box-sizing:border-box;color:rgb(51,153,51)">'sig003a_wf'</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">}</span>
timestamp: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">{</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x83601 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/int32.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">int32</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span> <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x61513 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/int32.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">int32</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">}</span>
waveform: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">{</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x32x83601 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span> <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x32x61513 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">}</span>
unit: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">{</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x83601 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span> <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x61513 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">}</span>
hdr: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x1 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/struct.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">struct</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span>
dimord: <span class="gmail-co2" style="box-sizing:border-box;color:rgb(51,153,51)">'{chan}_lead_time_spike'</span>
cfg: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x1 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/struct.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">struct</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span>
time: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">{</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x83601 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span> <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x61513 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">}</span>
trial: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">{</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x83601 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span> <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>1x61513 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">}</span>
trialtime: <span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">[</span>600x2 <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html" style="box-sizing:border-box;color:rgb(51,153,243);text-decoration:none;background-color:transparent"><span class="gmail-kw2" style="box-sizing:border-box;color:rgb(0,0,0);font-weight:bold">double</span></a><span class="gmail-br0" style="box-sizing:border-box;color:rgb(102,204,102)">]</span></font></pre><pre class="gmail-code gmail-matlab" style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px;white-space:pre-wrap;background-color:rgb(245,245,245)">Like here, I don't know why for timestamp,time and trial, there are same number of values. If I have one unit, 60 trials and focus on -0.5 s to 0.5 s around stimulus event, I think trial means which trial of the 60 trials has spikes in this 1 s. The time means time point of spikes located in the 1 s around stimulus for each trial. Is it correct? But what about the timestamp? It means from the beginning of recording to the end and has nothing to do with trials?</pre><pre class="gmail-code gmail-matlab" style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px;white-space:pre-wrap;background-color:rgb(245,245,245)">I feel I am quite lost. </pre><pre class="gmail-code gmail-matlab" style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px;white-space:pre-wrap;background-color:rgb(245,245,245)">Best,</pre><pre class="gmail-code gmail-matlab" style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px;white-space:pre-wrap;background-color:rgb(245,245,245)">Tianyang</pre></div></div>