why does hdf5read function return only 4 decimal places instead all numbers

2 ビュー (過去 30 日間)
Nurul Ain
Nurul Ain 2014 年 4 月 28 日
コメント済み: Nurul Ain 2014 年 4 月 28 日
Hi all,
I run this code to read dataset in my test.hdf5 file. It return me 0.6996 instead of the whole 0.699552191362574. Please guide.
hinfo = hdf5info('test.hdf5');
dset = hdf5read(hinfo.GroupHierarchy.Datasets(1));
and here is my test.hdf5 file. test.hdf5

採用された回答

Ashish Uthama
Ashish Uthama 2014 年 4 月 28 日
Look at the documentation for format.
>> hinfo = hdf5info('test.hdf5');
dset = hdf5read(hinfo.GroupHierarchy.Datasets(1));
dset
dset =
0.6996
>> format long
>> dset
dset =
0.699552191362574
>>

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHDF5 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by