clans.m
来自「code of an ADC implementation woith matl」· M 代码 · 共 26 行
M
26 行
function NTF=clans(order,OSR,Q,rmax,opt)%NTF = clans(order=4,OSR=64,Q=5,rmax=0.95,opt=0) Optimal NTF design%for a multi-bit modulator.%CLANS = "closed-loop analysis of noise-shapers,"%and was originally developed by J.G. Kenney and L.R. Carley.% Handle the input argumentsparameters = {'order';'OSR';'Q';'rmax';'opt'};defaults = [ 4 64 5 0.95 0 ];for i=1:length(defaults) parameter = char(parameters(i)); if i>nargin | ( eval(['isnumeric(' parameter ') ']) & ... eval(['any(isnan(' parameter ')) | isempty(' parameter ') ']) ) eval([parameter '=defaults(i);']) endendif exist('fmincon','file')==2 % Optimization Toolbox >=6 NTF=clans6(order,OSR,Q,rmax,opt);elseif exist('constr','file')==2 % Optimization Toolbox version < 6 NTF=clans5(order,OSR,Q,rmax,opt);else error('CLANS needs the optimization toolbox.');end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?