From: Shahruk on 9 May 2010 13:56 Hi, After constructing the continuous-time state-space model object I am trying to specify the parameter values in the structure matrices that I do not want to estimate % Set up the model matrices A = [(-Rl-Rc)/L -1/L;1/C 0]; B = [1/L Rc/L;0 -1/C]; C = [Rc 1]; D = [0 -Rc]; K = [0;0]; x0 = [0;0]; m = idss(A,B,C,D,K,x0,'Ts',0); m.As =[(-Rl-Rc)/L NaN;1/C 0]; m.Bs =[NaN Rc/L;0 -1/C]; m.Cs = m.c; m.Ds = m.d; m.Ks = m.k; m.x0s = [NaN;0] m.NoiseVariance = [0.01 0; 0 0.1]; m = pem(data,m) .... But I am getting the following error. ??? Error using ==> mrdivide Matrix dimensions must agree. Error in ==> grey1 at 33 m.As =[(-Rl-Rc)/L NaN;1/C 0]; Could anyone help me...am stuck in it for a long time :(
|
Pages: 1 Prev: webcam and simple processing in GUI Next: Optimization fitness function ANN and GA |