I am implementing the extended kalman filter for battery soc estimation using a state space model in simulink. The output equation has the open circuit voltage as one of the terms. This open circuit voltage is a function of battery SOC. So I want to understand how can we calculate the derivative of OCV with respect to SOC