how to add a sinusoidal signal and rectangular pulse in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sin(t)+[u(t)-u(t-3)]
0 Kommentare
Antworten (1)
Harish Saranathan
am 27 Jul. 2017
Hello Shashi,
You can directly use the "sin" and "heaviside" functions for the sinusoid and step respectively. The documentation for these functions can be found here:
Accordingly, the line of code will look like this:
sin(t) + (heaviside(t) - heaviside(t-3))
Harish
1 Kommentar
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing 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!