Legacy Code Tool 支持变维度的输出吗?。

我用 Legacy Code Tool 将自己手写的C 代码集成到 Simulink 中。其中,C代码的输出是可变维度的,LCT 支持这样的代码吗?

 採用された回答

dojok
dojok 2022 年 11 月 27 日

0 投票

其中有提到:You can specify argument dimensions with expressions that use the following:
即,您可以通过以下方法指定 LCT 的输出维度:
1.函数:numel、size
2.数值
3.运算符号:+、-、*、/
4.整数或浮点数
例如:
>> def.OutputFcnSpec=foo4(int8 p1[], int8 u1[], double y1[numel(u1)+2][numel(u1)+3], int32 (numel(p1)+numel(u1))*2+size(y1,2))';

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCode Generation についてさらに検索

タグ

質問済み:

2022 年 11 月 27 日

回答済み:

2022 年 11 月 27 日

Community Treasure Hunt

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

Start Hunting!