How do I select different value of resistances depending on the control input.

조회 수: 7 (최근 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
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
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

Muruganandham Subramanian
Muruganandham Subramanian 2013년 5월 31일
편집: Muruganandham Subramanian 2013년 5월 31일
Use MultiportSwitch
  댓글 수: 1
Ashwini
Ashwini 2013년 6월 4일
I am now using a 'variable resistor' block from simscape and that has solved my problem.
I appreciate help from all of you. Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by