本帖最后由 meidanzon 于 2012-12-20 20:16 编辑
使用FDATOOL获得CCS参数如何使用,比如这个十阶的参数,搞不懂如何用这些参数
哪个是a,哪个是b?
/*
* Filter Coefficients (C Source) generated by the Filter Design and Analysis Tool
*
* Generated by MATLAB(R) 7.0 and the
*
* Generated on: 20-Dec-2012 20:14:44
*
*/
/*
* Discrete-Time IIR Filter (real)
* -------------------------------
* Filter Structure : Direct-Form II, Second-Order Sections
* Filter Order : 10
* Stable : Yes
* Linear Phase : No
*/
/* General type conversion for MATLAB generated C-code */
#include "tmwtypes.h"
/*
* Expected path to tmwtypes.h
* D:\MATLAB7\extern\include\tmwtypes.h
*/
#define MWSPT_NSEC 11
const int NL[MWSPT_NSEC] = { 1,3,1,3,1,3,1,3,1,3,1 };
const real64_T NUM[MWSPT_NSEC][3] = {
{
0.3653353513702, 0, 0
},
{
1, 2, 1
},
{
0.2912057721338, 0, 0
},
{
1, 2, 1
},
{
0.2483410789625, 0, 0
},
{
1, 2, 1
},
{
0.2243481497279, 0, 0
},
{
1, 2, 1
},
{
0.2135037885388, 0, 0
},
{
1, 2, 1
},
{
1, 0, 0
}
};
const int DL[MWSPT_NSEC] = { 1,3,1,3,1,3,1,3,1,3,1 };
const real64_T DEN[MWSPT_NSEC][3] = {
{
1, 0, 0
},
{
1, -0.2709975117919, 0.7323389172728
},
{
1, 0, 0
},
{
1, -0.2160098642842, 0.3808329528195
},
{
1, 0, 0
},
{
1, -0.1842138030775, 0.1775781189277
},
{
1, 0, 0
},
{
1, -0.1664163901012, 0.06380898901286
},
{
1, 0, 0
},
{
1, -0.1583722879134, 0.01238744206847
},
{
1, 0, 0
}
};