MATLAB Coder - Best practice for using lists

4 ビュー (過去 30 日間)
Sheida
Sheida 2014 年 10 月 30 日
回答済み: Ryan Livingston 2014 年 11 月 2 日
Hi,
I'm developing a sorting/detection algorithm. The best way I would think to do it in C++ would be to use lists. What would be the correct way to write it in MATLAB so that the translated C++ version uses lists? Ideally, the C++ version would take advantage of member functions like 'push_back','pop_front', etc. Are lists even supported? Or is everything always turned into an array?
Thanks,

回答 (1 件)

Ryan Livingston
Ryan Livingston 2014 年 11 月 2 日
MATLAB Coder does not currently generate C++ code that utilizes the STL data structures. You can view the mapping between MATLAB types and C/C++ types here:

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by