?? 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 + -