Problem with ramp change in waveforms

조회 수: 18 (최근 30일)
Hossein
Hossein 2025년 5월 10일
댓글: Sam Chak 2025년 5월 11일
I am simulating a circuit in Simulink. I also have to use MATLAB function block along with circuit elements. I want the output of myMATLAB function to cahnge instantly between its values but instead when I zoom in the output changes from one value to another in a ramp kind of way. How can I force my signals to change instantly?

답변 (1개)

Sam Chak
Sam Chak 2025년 5월 11일

You can force the signal to 'jump' instantly at the point of discontinuity by using the sign function.

  댓글 수: 1
Sam Chak
Sam Chak 2025년 5월 11일

Else, if you prefer linguistic instruction, you can use the If–Else conditional statement.

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

카테고리

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

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by