How do I select different value of resistances depending on the control input.
2 ビュー (過去 30 日間)
古いコメントを表示
I wish to simulate a system with changing resistive loads. I want to select different value of resistance depending on the value of my control signal. How can I achieve this?
1 件のコメント
Iain
2013 年 5 月 31 日
We need more details to be more helpful. Are you working in matlab, or simulink. What's your control signal? What kind of change to the load do you expect from your control signal?
回答 (2 件)
David Sanchez
2013 年 5 月 31 日
An option is to create your own function with the switch-case statement
switch control
case 1
resistance = 100;
case 2
resistance = 1000;
case 3
resistance = 10000;
end
0 件のコメント
Muruganandham Subramanian
2013 年 5 月 31 日
編集済み: Muruganandham Subramanian
2013 年 5 月 31 日
Use MultiportSwitch
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!