from matlab class to simulink
4 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to use a matlab user defined class in simulink? What is possible in simulink is to use a matlab user defined function or script but not a class. The solution I could think off is to place the class methods (functions) in a simulink fnc block.
0 件のコメント
回答 (1 件)
Kaustubha Govind
2011 年 12 月 27 日
編集済み: John Kelly
2015 年 2 月 26 日
See the documentation section Types of Custom Blocks>MATLAB Function Blocks to see what options are available in Simulink to call into MATLAB functions. It is currently not possible to directly call into a class, but you should be able to create wrapper functions to call into the class methods.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!