- Prod block to multiply the two below blocks
- random number block with sample time set to 0.5
- repeating sequence stair with sample time set to 0.1 and value to [ones(1,5) zeros(1,20)]
create a signal for a specified duration
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to do this in simulink. I want to generate a random number for example 0.745 (as a signal) that lasts for 0.5 seconds, then the signal goes down to zero for 2 seconds, and then another random number is generated for example -0.234 (as a signal) which lasts for another 0.5 seconds and then dies down, and the process continues until the simulation ends. The simulation sampling time is 0.1 seconds, so there are signals that are generated at 10hz which my random signal will be added to. (more or less like a step input with random magnitude that dies down after a pre-specified amount of time, and then it comes back on again).
Thank you !
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 1 Aug. 2013
Use three blocks
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sources 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!