i am designing the model of a bldc motor in which i need to solve some ode which are time varying. i don't know which matlab syntax will b helpful for me. kindly, suggest. my code is
where A is a 5X5 matrix which is dynamic means varies with every iteration. and the initial conditions X(0) also varies with every iteration. how to solve these equations??
No products are associated with this question.
It is not clear, what this means:
the initial conditions X(0) also varies with every iteration
To solve the ODE use ODE45, if the problem is not stiff. The documentation doc ode45 contains useful examples.