sugarmeaowl
Member level 1

matlab information required please help
hiya
I'am using discrete Linear quadratic regulator equation to calculate the performance function of my system. the system is given by
xk = Ax(k-1) + Bu(k)
with the performance index defined as
J= ∑ (X(k)' *Q* X(k) + U(k)' * R * U(k))
(upper limit for summation is suppose N and lower limit is k=0)
The terms inside the bracket are known . i know wat my X ,Q,R, U is. after solving the equation inside the bracket the term comes out to be 4 by 4 matrix. now how can i do the summation thing for my 4 by 4 matrix ?. i did symsum (J) but its givin error as
'' Undefined function or method 'sysum' for input
arguments of type 'double''
if some one can please help me out in solving my problem step by step. any help will really b appreciated.
thank you
hiya
I'am using discrete Linear quadratic regulator equation to calculate the performance function of my system. the system is given by
xk = Ax(k-1) + Bu(k)
with the performance index defined as
J= ∑ (X(k)' *Q* X(k) + U(k)' * R * U(k))
(upper limit for summation is suppose N and lower limit is k=0)
The terms inside the bracket are known . i know wat my X ,Q,R, U is. after solving the equation inside the bracket the term comes out to be 4 by 4 matrix. now how can i do the summation thing for my 4 by 4 matrix ?. i did symsum (J) but its givin error as
'' Undefined function or method 'sysum' for input
arguments of type 'double''
if some one can please help me out in solving my problem step by step. any help will really b appreciated.
thank you