Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Start signal only when trigger is activated, not at the beginning of simulation

1 Ansicht (letzte 30 Tage)
Number seven
Number seven am 26 Apr. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi everyone,
Basically, what I want to do is to produce a combination of two signals whenever a certain trigger is activated. These two signals are two steps, where the first step occurs for around 10 samples and the second one is kept at a constant level immediately after the first one is over, i.e. after 11 samples.
I tried using an enabled system, where the hold signal is a combination of step signals that starts at value=1, goes on for 10 samples, jumps to value=2 for 1 sample and returns to value=0. In this way, the held signal is the last one read. However, I don't know how to "start" the signal only when the trigger is activated.
My question (or similar) has already been asked before, but it was 6 years ago, so maybe MATLAB has already implemented this function and I don't know of it.
Thank you!
Bernardo

Antworten (0)

Diese Frage ist geschlossen.

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by