- Use Pulse Generator block and set the Amplitude as 23 ( 15 - (-8) = 23), Period as 1/18000 and Pulse Width as 50%.
- Now Add the output of a Constant block of value -8 to the output of the pulse signal
How to create a square wave with different amplitudes?
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sudarshan
il 11 Mar 2022
Commentato: Sudarshan
il 14 Mar 2022
I need to generate a square wave from -8 to 15 with a frequency of 18 kHz. How can I do this in Simulink?
0 Commenti
Risposta accettata
Kiran Felix Robert
il 14 Mar 2022
Hi Sudarshan,
To get a custom square wave between -8 and 15, perform the following,
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Switches and Breakers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!