Variable Gain Value Dependent on input in Simulink.
古いコメントを表示
I am modelling a four wheeled vehicle in simulink using Newtons 2nd law
I wish to change the damping coefficient, currently a gain block, dependant on the input into the block.
Any ideas would be grateful, Thank you.
採用された回答
その他の回答 (1 件)
ES
2017 年 3 月 21 日
0 投票
what is "dependant on the input into the block"? If you want to change the gain from workspace, you can do so by specifying a workspace variable as gain in the block parameter. If you want to change the gain according to the value of input, you will have to model it.
For example if input is >0.5, pass it through a gain block with gain =100. else if input is <0.5, pass it through a gain block with gain =120. You can use a multiport switch to do this.
2 件のコメント
Conor Hardiman
2017 年 3 月 21 日
James Richard
2019 年 10 月 14 日
Could you please give me an example of variable gain by using the multiport switch? I have read the documentation and still haven't understand.
カテゴリ
ヘルプ センター および File Exchange で Automotive Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

