Why do I receive a "not enough information to determine output sizes" error while compiling a model with a MATLAB Function block in R2024a?

5 ビュー (過去 30 日間)

I am getting error messages like the following when compiling a model with a MATLAB Function block:

Simulink does not have enough information to determine output sizes for this block.

Chart expects data 'y' to have size '[1 65536]', but the propagated size is '[1 16]'. Fully specify all inherited properties of your inputs and outputs.
Why am I receiving this error and how can I fix this?

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 5 月 23 日
The error messages occurs when Simulink cannot determine an output's size at model compile time. Our development team is aware that there are scenarios where these dimensions could be determined at model compile time, yet Simulink struggles to do so. Enhancements to dimension analysis are on the roadmap for upcoming MATLAB releases to address this issue. 
In the meantime, a workaround is to explicitly specify the output sizes as demonstrated below:

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by