Is there a code difference between using custom library blocks vs custom toolbox blocks

5 ビュー (過去 30 日間)
Richard
Richard 2025 年 1 月 6 日
回答済み: KALYAN ACHARJYA 2025 年 1 月 6 日
I've been told that I can create a custom toolbox with custom algorithms. I currently use a custom library for those custom algorithms blocks. I've been told that the reason for a libray is to reduce the code generated by using the same library block multiple times in the model. This would be achieved through the use of a function call for that block. If that block is in a toolbox and used multiple times in a model, would the generated inline code be larger due to that block code added multiple times or the same as if that custom block were pulled from a library?

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2025 年 1 月 6 日
For generated code size to be the same as when library blocks are used, the Toolbox blocks should be designed keeping in mind more reuse & configured for code generation.

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by