How to create a square wave signal
Mostra commenti meno recenti
I have to create a square wave of amplitude 0.19 and period 495 samples and I don't know how to do. I just have understood that in Matlab there is the command x=square(t) but I really don't know how to represent my period and my amplitude. Could someone help me please?
5 Commenti
Jonas
il 10 Mag 2021
per period you want 495 samples and which frequency do you want?
Benedetta Bonini
il 10 Mag 2021
Jonas
il 10 Mag 2021
yes and no. samples per period refers to sampling frequency. normally you want a frequency e.g. of 2 Hz, which means 2 per second. during that second the signal is sampled several times which refers to the sampling frequency
Adam Danz
il 10 Mag 2021
This answer demonstrates a parameterized step function but you need to know the period and what you're describing is the number of samples within a period.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Waveform Generation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

