[OctDev] fir1 question on symmetry

2012-05-07 Thread James Steward
Hi, Regarding the fir1 function and the "blackmanharris" window; If I specify an even number of coefficients (n) it produces a symmetric filter with an odd number of coefficients (n+1). If I specify an odd number of coefficients it produces a non symmetric filter with an even number of coeffic

Re: [OctDev] fir1 question on symmetry

2012-05-07 Thread James Steward
On 08/05/12 09:39, James Steward wrote: > Hi, > > Regarding the fir1 function and the "blackmanharris" window; > > If I specify an even number of coefficients (n) it produces a symmetric > filter with an odd number of coefficients (n+1). > > If I specify an odd nu

Re: [OctDev] fir1 question on symmetry

2012-05-07 Thread James Steward
On 08/05/12 11:54, Daniel J Sebald wrote: On 05/07/2012 07:39 PM, James Steward wrote: On 08/05/12 09:39, James Steward wrote: Hi, Regarding the fir1 function and the "blackmanharris" window; If I specify an even number of coefficients (n) it produces a symmetric filter with an odd

Re: [OctDev] fir1 question on symmetry

2012-05-07 Thread James Steward
On 08/05/12 13:26, Daniel J Sebald wrote: > On 05/07/2012 09:29 PM, James Steward wrote: >> On 08/05/12 11:54, Daniel J Sebald wrote: >> >>> >>> octave:33> N=7 >>> N = 7 >>> octave:34> n = -ceil(N/2):N/2 >>> n = >>> >&g