You can pass only specific components by providing a vector of indices as the value of the OutputSel property. By default, the ODE solver passes all components of the solution to the output function. odeprint displays the solution components on the screen. odephas2 and odephas3 produce two- and three-dimnesional phase plane plots, respectively. When you call the solver with no output arguments, it calls the default odeplot to plot the solution as it is computed. Four output functions are provided: odeplot, odephas2, odephas3, odeprint. If you specify an output function as the value of the OutputFcn property, the solver calls it with the computed solution after each time step. The values indicate which event the solver detected. Indices into the vector returned by the function specified in the Events option. Solutions that correspond to events in sol.xe. sol.xe(end) contains the exact point of a terminal event, if any. Points at which events, if any, occurred. If you specify the Events option and events are detected, sol also includes these fields: The structure sol always includes these fields:Įach column sol.y(:,i) contains the solution at sol.x(i). You must pass odefun as a function handle. Returns a structure that you can use with deval to evaluate the solution at any point on the interval.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |