%statevar_control.m
%builds the linear state variable controller

pend_par

A=[0 1; 0 -b/m/l^2]

B=[0; 1]


P1des=input('\nEnter desired pole 1: ');
P2des=input('\nEnter desired pole 2: ');

Knl=place(A,B,[P1des P2des])

K1nl=Knl(1);
K2nl=Knl(2);



