h5read incorrectly reading exponents

1 回表示 (過去 30 日間)
Eric Kuebler
Eric Kuebler 2018 年 8 月 9 日
コメント済み: Walter Roberson 2018 年 12 月 22 日
Hello,
My apologies if this is the wrong forum.
I'm trying to open a dataset in an '.nwb' file using the h5read function. The dataset of the file reads '1.3675214E7'; however, h5read returns '13675214'. the odd thing about this is that another dataset reads '1.0004034E-12' and h5read returns '1.0004034e-12'. Any idea on how to resolve this?
Thank you in advance! Eric
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 12 月 22 日
Our policy is to not remove questions that have a meaningful answer.

サインインしてコメントする。

採用された回答

dpb
dpb 2018 年 8 月 9 日
Resolve what, precisely?
>> 1.3675214E7
ans =
13675214
>> whos ans
Name Size Bytes Class Attributes
ans 1x1 8 double
>>
The result is an integer-valued double and by default is displayed that way in ML command window. If you want a specific output format, say so--
>> fprintf('%.7e\n', 1.3675214E7)
1.3675214e+07
>>

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by