function xdot = OD(t,x)global A B C Da KAa=A+(B*K*C);Ba=B*Da;u=K*x;xdot=(Aa*x)+(Ba*u);end
When running this code it show error in the line u=K*x; as not enough inputs. Here A,B,C,Da,K are all 2×2 matrix.
errornot enough inputs
function xdot = OD(t,x)global A B C Da KAa=A+(B*K*C);Ba=B*Da;u=K*x;xdot=(Aa*x)+(Ba*u);end
Best Answer