If Action Block that create a stairstep signal in simulink
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Alberto Mora
el 1 de Jun. de 2020
Respondida: Fangjun Jiang
el 1 de Jun. de 2020
Hello,
I have two questions:
- 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?
- 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/307623/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/307627/image.jpeg)
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 1 de Jun. de 2020
The "sample time" of the Constant block might have been set as "1" second.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!