How can we have an "assert" function in a "matlab.System" class so it executes during code generation?
古いコメントを表示
We have a Simulink model that includes a MATLAB System block, that we would like to generate code for using Simulink Coder. In the "matlab.System" class file, we want to validate that a property, "Port Dimensions" is equal to a certain default value. If it isn't equal, we want the code generation to stop.
How can the "assert" function be included in the "matlab.System" class file, such that it is called during code generation?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Create System Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!