Experiment Number 3:-Controllable and Canonical Form
Experiment Number 3:-Controllable and Canonical Form
Que.1. Enter the order and the system coefficient (user input) from maximum order of 's' and find out
its controllable and canonical form.
ANSWER:- EDITOR WINDOW
clc
clear all
close all
O=input('enter the order of system=')
m=input('Enter System Coeficints from (s) max order=')
a=eye(O)
b=zeros(O,1)
c=-fliplr(m)
A=[b a;c]
disp('Controllable Canonical Form')
B=A'
disp('Observable Canonical Form')
COMMAND WINDOW
enter the order of system= 2
O =
2
Enter System Coeficints from (s) max order=[1 2 3]
m =
1 2 3
a =
1 0
0 1
b =
0
0
c =
-3 -2 -1
A =
0 1 0
0 0 1
-3 -2 -1
Controllable Canonical Form
B =
0 0 -3
1 0 -2
0 1 -1
Observable Canonical Form