How can I let Simulink code generation support multi-dimensions Array?

When I define a 2-dimension input port, e.x. dimension of port1 is [2 2], while in the code generated from the Simulink model the port1 is a 1-D Array, which length is 4.
Don't the Simulink code generation support multi-dimensions signals?

2 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 12 日
what do you mean by input port?
Bruce
Bruce 2012 年 9 月 13 日
The input port of a block in Simulink model.

サインインしてコメントする。

 採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 9 月 12 日

0 投票

Simulink supports multi-dimension signals, but to the best of my knowledge, Simulink Coder flattens them out in the generated C code. If you prefer the C-code to contain pointers-to-pointers, please submit an enhancement request via MathWorks Tech Support.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Simulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by