import double type data format changing

조회 수: 12 (최근 30일)
kyoungin kang
kyoungin kang 2021년 3월 9일
답변: Walter Roberson 2021년 3월 9일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 3월 9일
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')

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by