I wanted to visualise at how the frequency spectrum of square waves changes with duty. But I got stuck at the first hurdle:
FourierTransform[SquareWave[x], x, w]
Doesn't evaluate. Why not? Can I make it do so?
I tried a couple of other things, like
If[Sin[x]>0,1,0] but they don't work. I would have thought the built in square wave would have worked.