Creating a rectangular pulse given the samples number and sampling frequency

I need some help to create a Rectangular Pulse Given the samples number = 18
Sampling Frequency = 60MHz and the peek power is 1.5Mwatts.

Risposte (1)

Adam Danz
Adam Danz il 10 Giu 2021
Modificato: Adam Danz il 14 Giu 2021
If you have the Signal Processing Toolbox, use square()
Otherwise create a sine wave (sin()) that fits your description and then round it to make it square.
If you have any problems, show us the code and we can help to square it up.

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 10 Giu 2021

Modificato:

il 14 Giu 2021

Community Treasure Hunt

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

Start Hunting!

Translated by