Open
Description
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
Labels
No labels