<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ozan <div><div><br></div><div>On 10 Dec 2013, at 13:48, Ozan Çağlayan wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>1 second sampled at 5Hz would be [ 0. , 0.25, 0.5 , 0.75, 1. ]?<br>Am I wrong?<br></div></blockquote><br></div><div>No, at 5 Hz sampling frequency the distance between subsequent samples is 1/5 Hz = 0.2 seconds. So depending on whether you include the edges of the time interval or not, a time interval from 0 to 1 could be represented as<div><br><div>0.0 0.2 0.4. 0.6 0.8 1.0 % including both edges</div><div><div>0.2 0.4. 0.6 0.8 1.0 % including only the rightmost edge</div></div><div><div>0.0 0.2 0.4. 0.6 0.8 % including only the leftmost edge</div></div><div><div>0.2 0.4. 0.6 0.8 % not including the edges of the interval</div></div><div><br></div><div><br></div><div>In the case of a continuous recording of Nsamples at Fsample I would consider the best representation</div><div><br></div><div><div>data.trial{1} = randn(Nchans, Nsamples);</div></div><div><div>data.time{1} = ((1:nSamples)-1)/Fsample; % the first sample is at time=0, the last sample is at (nSamples-1)/Fsample</div></div><div>data.label = arrayfun(@num2str, 1:Nchans, 'UniformOutput', false)</div><div><br></div><div>See also <a href="http://fieldtrip.fcdonders.nl/faq/how_can_i_process_continuous_data_without_triggers">http://fieldtrip.fcdonders.nl/faq/how_can_i_process_continuous_data_without_triggers</a>, <a href="http://fieldtrip.fcdonders.nl/faq/how_can_i_import_my_own_dataformat">http://fieldtrip.fcdonders.nl/faq/how_can_i_import_my_own_dataformat</a> and <a href="http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other">http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other</a></div><div><br></div><div>You might want to check out <a href="http://martinos.org/mne/mne-python.html">http://martinos.org/mne/mne-python.html</a> and <a href="http://code.google.com/p/pyeeg/">http://code.google.com/p/pyeeg/</a> for python code related to EEG data.</div><div><br></div><div>best regards,</div><div>Robert</div><div><br></div><div><br></div><div><br></div><div><div><div><br></div></div></div></div></div></body></html>