Skip to content

Output of FIR filter design methods is not compatible with functions that expects FilterCoefficients #511

@minecraft2048

Description

@minecraft2048

This works as expected:

responsetype = Lowpass(0.2)
designmethod = Elliptic(4, 0.5, 30)
coeffs = digitalfilter(responsetype, designmethod)
H,w = freqresp(coeffs)

but if I changed the designmethod to any FIR filter design methods, such as FIRWindow ,freqresp complains with MethodError: no method matching freqresp(::Vector{Float64}) :

responsetype = Lowpass(0.2)
designmethod = FIRWindow(hanning(64)) # <- changed here
coeffs = digitalfilter(responsetype, designmethod)
H,w = freqresp(coeffs) #breaks here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions