Dr.Peterson
Elite Member
- Joined
- Nov 12, 2017
- Messages
- 16,804
That's good. The one I had in mind was a modification of these, which avoid the trig:
But your choice is up to you.
A square wave can also be generated using the floor function directly:
x(t)=2(2⌊ft⌋−⌊2ft⌋)+1
and indirectly:
x(t)=(−1)⌊2ft⌋.
But your choice is up to you.