Skip to content

Maybe filter example need to be updated? #567

@Alexander-Barth

Description

@Alexander-Barth

When I run 2nd example from https://docs.juliadsp.org/latest/filters/#Examples:

I get the following error:

x = rand(10000);
responsetype = Bandpass(10, 40)
# ERROR: frequencies must be less than the Nyquist frequency 1.0
designmethod = Butterworth(4)
filt(digitalfilter(responsetype, designmethod; fs=1000), x)

I guess, I must be using this:

responsetype = Bandpass(10, 40, fs = 1000)
designmethod = Butterworth(4)
filt(digitalfilter(responsetype, designmethod), x)

Is this correct? If yes, does it help to make a PR for the documentation?

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