tomyboy222
New member
- Joined
- Mar 23, 2016
- Messages
- 1
I was hoping to acquire help creating a discrete function to describe four square waves of width=1, height =1 that i can use for fourier analysis.
The space in between each pulse is 1 (so it's a 0/1/0/1/0/1/0/1/0 function). The pulses have a baseline =0 and a max height = 1.
Typically i center the discrete function of rectangular pulses which would put the the center is in between the 2 square pulses.
The example that i have to work with is 5 square waves so the middle wave is centered at x=0 making both sides symmetric. The function for this is m(x) = ([rect(2x) convolved with comb(x)] times rect (x/5)). So technically the example is m(x) = ([rect (x / 1/2) * comb(x/1)] times rect (x/5)). So the rect (x/1/2) describes the single rect function centered at 0 convolved with an infinite series of comb (x) function times the envelope of a rect function with a basewidth of 5. The professor said the answer was not to just change the envelope rect function to a basewidth of 4. When you make this 4 rectangular pules the center x=0 pt now is centered in between the rectangular pulses in my mind. Any help is greatly appreciated
The space in between each pulse is 1 (so it's a 0/1/0/1/0/1/0/1/0 function). The pulses have a baseline =0 and a max height = 1.
Typically i center the discrete function of rectangular pulses which would put the the center is in between the 2 square pulses.
The example that i have to work with is 5 square waves so the middle wave is centered at x=0 making both sides symmetric. The function for this is m(x) = ([rect(2x) convolved with comb(x)] times rect (x/5)). So technically the example is m(x) = ([rect (x / 1/2) * comb(x/1)] times rect (x/5)). So the rect (x/1/2) describes the single rect function centered at 0 convolved with an infinite series of comb (x) function times the envelope of a rect function with a basewidth of 5. The professor said the answer was not to just change the envelope rect function to a basewidth of 4. When you make this 4 rectangular pules the center x=0 pt now is centered in between the rectangular pulses in my mind. Any help is greatly appreciated