switch block Combine multiple signals into single signal.

조회 수: 5 (최근 30일)
SALAH alatai
SALAH alatai 2021년 6월 1일
답변: Vimal Rathod 2021년 6월 7일
Hello.
can anyone descrpe me with example by easy way to understand this switch as in the picture below.
I know the swiitch passes through the first input or the third input signal based on the value of the second input. The first and third inputs are data input. The second input is a control input. Specify the condition under which the block passes the first input by using the Criteria for passing first input and Threshold parameters But can not understand it
  댓글 수: 1
Paul
Paul 2021년 6월 1일
Can you be more explicit about what you don't understand? Did you read the entire doc page? I think it even has a link to an example.

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

답변 (1개)

Vimal Rathod
Vimal Rathod 2021년 6월 7일
Hello,
A simple example would be suppose the "criteria for passing the first input" parameter is set to "u2 >= threshold" then if control signal (second signal) is greater than or equal to the defined threshold, then only the first signal passes as output or else the third signal passes. Have a look at this image below hope this explains enough.
Have a look at the example models of switch case usage by using scope on the signals which are going into switch block and coming out.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by