Mathematica > Data Manipulation > Signal Processing >

SquareWave

SquareWave[x]
gives a square wave that alternates between +1 and -1 with unit period.
SquareWave[{y1, y2}, x]
gives a square wave that alternates between y1 and y2 with unit period.
  • SquareWave[{min, max}, x] has value max for 0<x<1/2.
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team