help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I have modified firls.m to include all types of FIRs plus HT and dif

 From: Nicholas Jankowski Subject: Re: I have modified firls.m to include all types of FIRs plus HT and diff Date: Mon, 22 May 2017 15:48:32 -0400

On Mon, May 22, 2017 at 11:44 AM, je suis wrote:

Now I am getting some results but, rather than keeping on uploading
versions, maybe it would be less time consuming if someone would
simply verify the inputs below.

No plots, but here are outputs from Matlab 2017a. I turned the output into column vectors for easier display. yours does produce a row vector, correct?:

>> h = firls(10, [0, 200, 300, 512]/512, [0, 1, 0, 0], 'd'); h'
ans =
0.035928864351330
-0.067308010314644
-0.050456898575185
0.185894253348845
0.280660645384262
0
-0.280660645384262
-0.185894253348845
0.050456898575185
0.067308010314644
-0.035928864351330

>> h = firls(11, [0, 200, 300, 512]/512, [0, 1, 0, 0], 'd'); h'
ans =
0.025308869942737
-0.018174108886369
-0.083194157264830
0.063294222003005
0.270747839846565
0.167064335397056
-0.167064335397056
-0.270747839846565
-0.063294222003005
0.083194157264830
0.018174108886369
-0.025308869942737

>> h = firls(30, [0, 200, 300, 512]/512, [0, 1, 0, 0], 'd'); h'
ans =
-0.001727492754117
0.002950115225098
0.002312298472778
-0.007403124270317
-0.003351919130705
0.015091885357943
0.004783019330681
-0.027709747124719
-0.007159957259267
0.048699212481416
0.012419773585562
-0.088125370702066
-0.030976350270924
0.196544069741647
0.261571692766966
0
-0.261571692766966
-0.196544069741647
0.030976350270924
0.088125370702066
-0.012419773585562
-0.048699212481416
0.007159957259267
0.027709747124719
-0.004783019330681
-0.015091885357943
0.003351919130705
0.007403124270317
-0.002312298472778
-0.002950115225098
0.001727492754117

>> h = firls(31, [0, 200, 300, 512]/512, [0, 1, 0, 0], 'd'); h'
ans =
-0.001477376653801
0.001537741976998
0.003524289001546
-0.004274142701889
-0.007260834405834
0.008986685883760
0.013607511772419
-0.016508560351975
-0.024328864115496
0.028205223419064
0.043564106159834
-0.047258621464964
-0.085918459861681
0.082936051557987
0.266566807505849
0.155338333341917
-0.155338333341917
-0.266566807505849
-0.082936051557987
0.085918459861681
0.047258621464964
-0.043564106159834
-0.028205223419064
0.024328864115496
0.016508560351975
-0.013607511772419
-0.008986685883760
0.007260834405834
0.004274142701889
-0.003524289001546
-0.001537741976998
0.001477376653801

reply via email to

 [Prev in Thread] Current Thread [Next in Thread]