find_x0.m
来自「The main features of the considered iden」· M 代码 · 共 27 行
M
27 行
% Choose initial approximation for stlsidentuy% Uses subid and Polyxfunction [x0,sys] = find_x0(u,y,nx,eiv)if ~isa(u,'ss') [a0,b0,c0,d0] = subid(y,u,ceil(nx/size(y,2))+1,nx,[],[],1); sys = ss(a0,b0,c0,d0,-1);else sys = u; [a0,b0,c0,d0] = ssdata(sys); end% convert sys to xif issiso(sys) [N,D] = tfdata(sys,'v'); x0 = [fliplr(N)'; -fliplr(D(2:end))'];else % Use Polyx [N,D] = ss2lmf(a0,b0,c0,d0); N = punpck(N); D = punpck(D); x0 = [N -D]'; d = size(x0,2); x0 = -x0(1:end-d,:)/x0(end-d+1:end,:);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?