%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Programme analyse_etat.m %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clear all; close all; % Définition d'une représentation d'état du système A=input('matrice A?'); B=input('matrice B?'); C=input('matrice C?'); [n,m]=size(B); [p,n]=size(C); representation=ss(A,B,C,zeros(p,m)); % Commandabilité Gamma=ctrb(representation) if rank(Gamma)==n display('système commandable') else display('système non commandable') end % Observabilité Omega=obsv(representation) if rank(Omega)==n display('système observable') else display('système non observable') end % Pôles et zéros du système poles=pole(representation) zeros=zero(representation)