TeXclipで作成した数式の再編集については
を参照してください.
function [ csys ] = obsvcanon(sys) %OBSVCANON Compute observability canonical form [n,d]=tfdata(tf(sys),'v'); W=hankel(fliplr(d(1:numel(d)-1))); G=ss(sys); U0=obsv(G); S=W*U0; csys=ss(S*G.a*inv(S),S*G.b,G.c*inv(S),G.d); end
function [ csys ] = ctrbcanon(sys) %CTRBCANON Compute controllability canonical form [n,d]=tfdata(tf(sys),'v'); W=hankel(fliplr(d(1:numel(d)-1))); G=ss(sys); UC=ctrb(G); S=UC*W; csys=ss(inv(S)*G.a*S,inv(S)*G.b,G.c*S,G.d); end
\ifpdf
% pdf code
\else
% dvi code
\fi