MATLAB Coder - Best practice for using lists

4 visualizaciones (últimos 30 días)
Sheida
Sheida el 30 de Oct. de 2014
Respondida: Ryan Livingston el 2 de Nov. de 2014
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,

Respuestas (1)

Ryan Livingston
Ryan Livingston el 2 de Nov. de 2014
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:

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by