-
Notifications
You must be signed in to change notification settings - Fork 256
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
transfer function coefficients and v.s. Matlab #148
Comments
Hello, I downloaded the file and put the headers in the include path, but when using the filter, I encountered a return 1 error.. Please help me... I have been facing this error for several days and I am new |
Building upon this issue, now that the input parameters of the I am getting a mismatch between matlab and kfr-cpp at the zeros, but not at the poles and the gain. Here it is: Here is my kfr-cpp code:
Output:
And this is the matlab counterpart:
Output:
Note that the order is different but the values are the same. Is this a bug, or am I missing something...? Thanks @BinDong314 for opening this issue. It helped me getting ob track for my own purposes with kfr. |
I add some info. Interestingly enough, the matlab result is not the same when requesting directly the zpk representation. With the same input parameters:
Output (which is, indeed, the same as in kfr-cpp):
|
Hi, KFR Community,
Thanks for the help in advance for two issues.
Code is from : https://github.com/kfrlib/kfr/blob/master/examples/iir.cpp
I understand that "filt" contains zeor-pole-gain forms, any help function inside to get transfer function coefficients?
They are different from Matlab code. Any hint to get the same results?
Output from Matlab:
Bests,
Bin
The text was updated successfully, but these errors were encountered: