Convert my data to milliseconds

Hello everyone, I have two LFP datasets. The first is sampled at 20 kHz and the second one at 1250 Hz. What should I do to convert each timestamps to milliseconds?

3 件のコメント

Nora Khaled
Nora Khaled 2020 年 11 月 18 日
could you explain what type of data you have and what outcome you want to achive?
Walter Roberson
Walter Roberson 2020 年 11 月 18 日
are the timestamps explicit or implied?
Lari Sa
Lari Sa 2020 年 11 月 18 日
Basically I have a matrix with values like: [ -0.26048, -0.30589, -0.87793, -0.69617, -0.71184, -0.39588, -0.5507, 0.11976....], so they indicate voltage fluctations, and each row is a different trial. I have been told that I need to convert these timestamps in milliseconds, but one dataset is sampled at kHz (20 kHz) and second one at Hz (1250 Hz). So far, I am just multiplying each value by 1000, but there must be something wrong because I still can't compare them!

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 11 月 18 日

0 投票

milliseconds = (sample number minus 1) / sampling frequency, times 1000

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

質問済み:

2020 年 11 月 17 日

コメント済み:

2020 年 11 月 18 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by