import double type data format changing
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I'm trying to import UTC time from cvs file.
But. matlab import UTC numbers into matlab table with "e+15" attached numbers.
How I import original format of numbers?
it is changed

to this type.

0 commentaires
Réponses (1)
Walter Roberson
le 9 Mar 2021
Those are the same. tables display double precision numbers according to your current "format" setting, and you currently have "format long g" in effect. long g displays integral values with up to 15 digits as integers but switches to scientific notation for 16 digits.
If you want you could take int64() or uint64() of the column, or you could
datetime(T.Timestampmicroseconds/1e6, 'convertfrom', 'posixtime')
0 commentaires
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!