How to generate timetable with microsecond accuracy
Ältere Kommentare anzeigen
I have some sensor data with a sample rate of 1kHz to include in a timetable. As it is now, the duration object required by the timetable does not support the precision I am providing (i.e 100.1000 and 100.1010 are both displayed as 100.1 sec).
The timetable is gererated like this, where probeTime is a vector containing timestamps in seconds, to 4 decimal places
probeTT = timetable(seconds(probeTime), U, gamma, theta, uu, vv, ww);
Is there a way of fixing this, aside from using datetime objects instead of seconds?
1 Kommentar
Walter Roberson
am 20 Dez. 2020
Set the Format property of the duration objects you are creating.
Antworten (1)
dt = datetime('now')
dt.Format = dt.Format + ".SSSSSS"
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!