Generate square wave starting from 0

10 Ansichten (letzte 30 Tage)
shariq khan
shariq khan am 10 Dez. 2018
Kommentiert: Walter Roberson am 12 Dez. 2018
I want to make square wave with function square which starts from 0 and not with amplitude

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Dez. 2018
[zeroes(1,M), ones(1,N)] repeated as necessary .
  2 Kommentare
shariq khan
shariq khan am 11 Dez. 2018
using function square?
Walter Roberson
Walter Roberson am 12 Dez. 2018
t = 0:.0001:.0625;
y = 1 - square(2*pi*30*t);
plot(t,y)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by