Skip to content

Accuracy of coefficients #1

Open
@aleksejshch

Description

@aleksejshch

Hi!
I checked the operation of filters with the obtained coefficients. Everything works well. But there is one problem:
By default in the console, I get a precision for coefficients of 7 symbols after point. But this accuracy is not enough in my case, and the error accumulates.
I solved this problem in the following way:
increased the precision by typing "output_precision(15)" into the console.
Full example:
pkg load signal
iir_filter = "butter"
order=3
fs=500
fc = 8.1
ft = 'low'
plot_on = 1
output_precision(15)
iir_coeffs_cmsis(iir_filter, order, fs, fc, ft, plot_on)

Maybe you can add this line to iir_coeffs_cmsis.m script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions