📄 cntrable.m
字号:
function S = cntrable(A,B)
% H. Saadat 1998
clc
% discr=[
%' The function S=cntrable(A,B) returns the transformation matrix '
%' S = [B AB A^2B . . . A^(n-1)B]. The system is completely state '
%' controllable if and only if S has a rank of n. '
%' '];
n=length(A);
for i=1:n;
S(:,n+1-i) = A^(n-i)*B;
end
if rank(S)~=n
disp('System is not state controllable')
else
disp('System is state controllable')
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -