Output first zero of a signal?
Afficher commentaires plus anciens
Is there anyway to output the first time at which a signal is zero (excluding at t = 0)?
Réponse acceptée
Plus de réponses (2)
Azzi Abdelmalek
le 10 Août 2012
1 vote
use a "switch" block with three inputs
- a signal from "clock" block (input3) %to get time
- a signal from a "constant" block (input1)
- your signal (input2)
set a condition in a "switch" block, to select which signal will be the output of switch block: the constant 0 or the time from a clock. you have just to ignore when the output is zero

Oliver McEnteggart
le 10 Août 2012
0 votes
Catégories
En savoir plus sur Sources dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!