Simulink exportation in C/C++ : input array size

10 ビュー (過去 30 日間)
Julien
Julien 2013 年 12 月 17 日
回答済み: Kaustubha Govind 2013 年 12 月 18 日
Hi,
My question : is it possible to give an array with undetermined size to simulink to make a C/C++ model ?
For exemple :
With A = [3,4,5] B = [6,7,8]
Then I generate my C/C++ model and I want to use it with A = [1,2,3,4,5] B =[6,7,8,9,10]
Is it possible without regenerate the code ? How ? And for a more complicated model ?
Many thanks !
Senn Julien

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2013 年 12 月 18 日
You can use signals of undetermined size in Simulink using variable-size signals, but they require that you specify an upper bound on the size. Truly dynamic sizing is not supported.

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by