how can i generate random spikes of magnitude 1 and 0 (digital pulses)in matlab
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
NN
am 19 Sep. 2021
Kommentiert: Image Analyst
am 20 Sep. 2021
how can i generate random spikes of magnitude 1 and 0 (digital pulses)in matlab ?
Please find the attached picture,
I need to generate spikes where i can define rise time and fall time.
It should be digital pulses of magnitudes 0 and 1
kindly help how to write code for it
or any example files, pleas provide the file link
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Sep. 2021
Use
r = randi([0 1], 1, numElements);
To widen the pulses use movmax().
To control the rise and fall of the pulses, use movmean().
3 Kommentare
Image Analyst
am 20 Sep. 2021
Of course. What did you use for the number of elements you want in your random array? How about 10 or 900 or 777777? I have no idea what you need.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Descriptive Statistics 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!