i have a set of 7 odes(7 state variables,5inputs).Is der any way to convert this to state space model or transfer func model in MATLAB?
Best Answer
If they are symbolic, likely the best you can do is to use theodeToVectorField function, and thenmatlabFunction. This will produce a ‘companion-form’ matrix that you can use as your‘A’ matrix (in anA B C D state-space representation).
Unless your ODEs are linear with constant coefficients, you cannot produce a linear matrix representation, and will have to use numerical integration.
If you are usingtf2ssto convert the transfer function to State space model then it will not return the E matrix. That form is only represented throughdssin which the state space model contains all the matrices to representinterdependency between gradient of state variables.You may followthis for detailedexplanation.
Best Answer