I need these functions to be of this form because otherwise I cannot use the CVODES solver in the sundialsTB toolbox. But then I would like to convert this gradient to a matlab function that is a function of the vectors X and p, not a function of the elements of these vectors. I can then get the partial derivatives, which are used to solve for the sensitivities, of the RHS of the ODE wrt to the parameters using a command like 'gradient(rhs_1, p)'. P = sym('p', ) % Vector representing parameters A smaller, but representative, example would look like X = sym('X', ) % Vector representing state variables The toolbox provides functions in common mathematical areas such as calculus, linear algebra. In the MATLAB ® Live Editor, you can get next-step suggestions for symbolic workflows. You can create, run, and share symbolic math code. In my case I have an ODE with 2 states and 10 parameters. Symbolic Math Toolbox provides functions for solving, plotting, and manipulating symbolic math equations. My overall goal is to use the MATLAB symbolic toolbox to simplify the process of formulating and solving for the sensitivities of solutions to ordinary differential equations with respect to the parameters in the equations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |