How to hold a signal for specific amount of samples?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sai kamal sreeja veepuri
am 26 Sep. 2018
Bearbeitet: sai kamal sreeja veepuri
am 26 Sep. 2018
I am using a enabled subsytem. Inside this subsystem I am trying to compare two signals using a relational operator. Whenever comparison holds true, relational operator will flag 1. I have connected a outport block to relational operator. Since I have selected reset option when output is disabled in block parameters of outport block, the outport sends out 1 for one sample period and resets back to zero. But I want to hold this value at 1 for atleast 4 samples and it should reset back to zero after 4 samples.How can I achieve this? I don't want to delay the output. I want to hold the output for certain samples and then reset it back to zero.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Ports and Subsystems finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!