%statevar_control.m
%builds the linear state variable controller

pend_par

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

B=[0; 1/m/l^2]


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

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

K1=K(1);
K2=K(2);



