Generate square wave starting from 0

I want to make square wave with function square which starts from 0 and not with amplitude

 Risposta accettata

Walter Roberson
Walter Roberson il 11 Dic 2018

0 voti

[zeroes(1,M), ones(1,N)] repeated as necessary .

2 Commenti

using function square?
t = 0:.0001:.0625;
y = 1 - square(2*pi*30*t);
plot(t,y)

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by