Effacer les filtres
Effacer les filtres

How to create random step signal?

14 vues (au cours des 30 derniers jours)
achuth varma
achuth varma le 6 Juil 2019
Doing Project on Deregulation with random variable load ... need step load perturbation block can you please help me to create it

Réponses (1)

Kaustav Bhattacharya
Kaustav Bhattacharya le 8 Juil 2019
To create a random step signal, you can write an infinite loop within which : generate a random value (within your limits) use that as the signal, use the pause command to stop for a specific interval after which you want the signal to change.
while
% generate random number
pause(1) %pauses for 1 ses
end

Community Treasure Hunt

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

Start Hunting!

Translated by