필터 지우기
필터 지우기

How can I save complex data to HDF5 file?

조회 수: 34 (최근 30일)
Amy
Amy 2014년 12월 23일
편집: per isakson 2015년 1월 1일
I'm looking for a good way to save complex data, having a real and imaginary component, to an HDF5 file. Is there something out there that can help or do I need to create a new data type? And if I do create a new data type, would the data be readable by other programs that load HDF5 or do I need to write a custom loading function?

채택된 답변

per isakson
per isakson 2014년 12월 23일
편집: per isakson 2015년 1월 1일
There are two alternatives
  • Use Matlab's high level functions to write the real and the imaginary part to separate datasets
  • Create a compound datatype, which requires Matlab's low level hdf support. The documentation of the low level functions is sparse. See Example 9. A compound datatype for complex numbers
There should be no problems to read either with any languages, which have HDF5-support.
"something out there" &nbsp I don't think so, however, see

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by