How to generate random pulse using Matlab/simulink?

4 visualizaciones (últimos 30 días)
Rupak Dhar
Rupak Dhar el 11 de Mzo. de 2015
Respondida: Sebastian Castro el 11 de Mzo. de 2015
Hello, I am a new user of matlab. So facing many problems. However, I am trying to generate a random pulse , like i want to generate 100000100000 with some initial delay. Besides, Is it possible to change the pulse width and amplitude of the generated pulses? Thanks in advance for help.

Respuestas (1)

Sebastian Castro
Sebastian Castro el 11 de Mzo. de 2015
There are many blocks in the Simulink Sources library to do this.
  • If you want to create your own vector of values, I'd look into the Repeating Sequence blocks.
  • If you want to graphically design a signal by clicking and dragging points, I'd look into the Signal Builder block.
  • If you want this to be a random number generator, you can use the Random Number or Signal Generator blocks.
  • If you need the data to only be 0 or 1, you could use the Uniform Random Number block to get a value between 0 and 1, and then round the output value so it's always either 0 or 1.
There's plenty options :)
- Sebastian

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by