fatcat1205
Newbie level 6
Hi, everybody. I am using matlab toolbox "delsig" to do the system design of a second order ADC.
In the "delsig" toolbox, function " realizeNTF ( ntf, form, stf ) " can set the coefficients for a particular modulator topology. It works perfectly with default input "stf=1", but when I set the stf has the same poles as ntf, Matlab gives me an error message for running this function. Did anybody meet the same problem, and has a solution. Thanks.
The matlab code is shown below:
************************
OSR=128; %over sampling rate
order =2; %the order of SDM
ntf0=synthesizeNTF(order,OSR,1); %create the optimized ntf.
stf0=ntf0; %copy the ntf to stf, so that they will have the same poles.
stf0.z=[]; %set the numerator of stf to 1.
form='CIFB';
[a,g,b,c]=realizeNTF(ntf0,form,stf0);
************************
here is the error message of matlab:
***********************
??? Error using ==> mrdivide
Matrix dimensions must agree.
Error in ==> realizeNTF at 327
b = real(x/A);
Error in ==> Test_7755_NTF_Cap2 at 10
[a,g,b,c]=realizeNTF(ntf0,form,stf0);
***********************
I downloaded the "delsig" toolbox from:
**broken link removed**
In the "delsig" toolbox, function " realizeNTF ( ntf, form, stf ) " can set the coefficients for a particular modulator topology. It works perfectly with default input "stf=1", but when I set the stf has the same poles as ntf, Matlab gives me an error message for running this function. Did anybody meet the same problem, and has a solution. Thanks.
The matlab code is shown below:
************************
OSR=128; %over sampling rate
order =2; %the order of SDM
ntf0=synthesizeNTF(order,OSR,1); %create the optimized ntf.
stf0=ntf0; %copy the ntf to stf, so that they will have the same poles.
stf0.z=[]; %set the numerator of stf to 1.
form='CIFB';
[a,g,b,c]=realizeNTF(ntf0,form,stf0);
************************
here is the error message of matlab:
***********************
??? Error using ==> mrdivide
Matrix dimensions must agree.
Error in ==> realizeNTF at 327
b = real(x/A);
Error in ==> Test_7755_NTF_Cap2 at 10
[a,g,b,c]=realizeNTF(ntf0,form,stf0);
***********************
I downloaded the "delsig" toolbox from:
**broken link removed**