h5write (h5read, hdf5write, hdf5read) is not supported for code generation in MATLAB 2016a.

7 ビュー (過去 30 日間)
Anjana Samarakoon
Anjana Samarakoon 2017 年 7 月 12 日
回答済み: Walter Roberson 2017 年 7 月 12 日
Hi,
I was developing a genetic algorithm in MATLAB and now I am trying to convert it to C++. In my script, I write and read from HDF files all the times; so I use h5read and h5write a lot. But MATLAB Coder does not allow me to convert these functions and this is the only issue with the conversion. Is there any way I can go around this problem, yet reading and writing data structures?
Any idea will be appreciated.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 7 月 12 日
Isolate the calls into routines that just do those operations. Put in coder.ceval calls protected by if ~coder.target('MATLAB') . Use the C++ wrappers provided by HDF5 . Link against the appropriate external library.

カテゴリ

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