Convert my data to milliseconds
Show older comments
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 Comments
Nora Khaled
on 18 Nov 2020
could you explain what type of data you have and what outcome you want to achive?
Walter Roberson
on 18 Nov 2020
are the timestamps explicit or implied?
Lari Sa
on 18 Nov 2020
Answers (1)
Walter Roberson
on 18 Nov 2020
milliseconds = (sample number minus 1) / sampling frequency, times 1000
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!