On Simulink how to add_block with output data type boolean?
7 ビュー (過去 30 日間)
古いコメントを表示
For example:
add_block('built-in/Constant','test/const1','Position',[90 20 110 40],'OutDataType','boolean','Value','1');% 0 or 1
Here on simulink shows constant block with output data type = Inherit from 'Constant value' but I need boolean output. How to do it without changing value as true or false?
1 件のコメント
Kaustubha Govind
2013 年 5 月 14 日
You can see the list of parameters of the Constant block using the following command:
get_param('built-in/Constant', 'DialogParameters')
What is the list of parameters in your version?
参考
カテゴリ
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!