blob: c3f14693818ed0a9e7410a6813a14b101a3fceef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//function//
A=[0 1;-2 0]
B=[0;3]
Cc=cont_mat(A,B);
disp(Cc,"Controlability Matrix=")
//To Check Whether the matrix(Cc) is singular i.e determint of Cc=0
if determ(Cc)==0;
printf("Since the matrix is Singular, the system is not controllable \n");
else;
printf("The system is controllable \n")
end;
|