How to synchronize signals at different frequency in the same table
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Stefano Massardi
el 4 de Ag. de 2021
Comentada: Stefano Massardi
el 5 de Ag. de 2021
Hi everyone
I have several signals recorded at different frequency but all of them has been recorded for 5 minutes. So for example I have A at 2000Hz with 600000 samples and B at 100Hz with 30000 samples and so on.
I have a matlab table for each signal, all of them with a timestamp column in EPOCH format. So my talbes are like [TimeStamp, Data].
Now I need to synchronize all the signals but I don't have really clear how I can do it. I was thinking about taking the one at maximum frequency and repeat the data for the slower ones. But even with this policy I don't figure out how I can build a table and then recognize when I should add data from the various signals, depending on their sample rate.
Alternative solutions are accepted.
Thnaks
0 comentarios
Respuesta aceptada
Scott MacKenzie
el 4 de Ag. de 2021
A1 = table2timetable(A);
B1 = table2timetable(B);
C1 = table2timetable(C);
TT = synchronize(A1, B1, C1);
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!