i am estimating state of charge of lithium-ion battery. i am using 2RC electrical equivalent model in Simulink and extended kalman filter model. i am facing problem in state function and measurement function. kindly help
What toolbox are you using? I worked with Simscape Power Systems, and I had a lof of troubles because of it. Basically the process variables might change depending on the rest of the Simulink schematic. Basically, I would use the EKF to estimate the output of a generator. Changes I would do in the EKF would affect the process (it was a wind turbine) without being any link between the EKF and the process, except some from blocks to get the inputs and measurements from the wind turbine. I found that changing the solver to a fix step continous one (some Power Systems blocks have numerical problems when using discrete solvers) like ode1, with a fix step size of 1e-9 made the simulation more stable (and more slower).
Can you please describe your problem in greater detail? What is the exact problem that you face?