Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy of coefficients #1

Open
aleksejshch opened this issue Mar 15, 2022 · 0 comments
Open

Accuracy of coefficients #1

aleksejshch opened this issue Mar 15, 2022 · 0 comments

Comments

@aleksejshch
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant