MATLAB Answers

If Action Block that create a stairstep signal in simulink

조회 수: 4(최근 30일)
Hello,
I have two questions:
  1. I use a If Block to "cut" the signal and not perform some operations (not depicted below). Is it the right approach to use a "If Block" for interupt the signal and don't allow to perform some tasks by the model?
  2. However I notice that after the "If Block" the signal became discrete (see the plot below, where you can see a stairstep plot), even if before the "If Block" the signal was continous (see the plot below, where you can see a continous plot). How to convert again the discrete signal into a continous?

  댓글 수: 0

Sign in to comment.

채택된 답변

Fangjun Jiang
Fangjun Jiang 1 Jun 2020
The "sample time" of the Constant block might have been set as "1" second.

  댓글 수: 0

Sign in to comment.

추가 답변(0개)

제품


릴리스

R2019a

Translated by