delete zero in signal

My current signal is shown in the figure, which can be seen as continuous steps. I want to obtain the vertices of these peaks and then connect them one by one to form a discount, becoming a new signal that can be input into other modules of Simulink. How to achieve this

Réponses (1)

Aquatris
Aquatris le 19 Juin 2024

0 votes

Your question is a bit ambigious but if you just want to remove the 0 s from the signal you can use a switch and delay block to ignore 0 values.

Produits

Version

R2023a

Question posée :

le 19 Juin 2024

Community Treasure Hunt

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

Start Hunting!

Translated by