reorder (model, compartment, kinetic law)
Reorder component lists
Syntax
modelObj = reorder(Obj,NewOrder)
Input Arguments
Obj | Model, compartment, or kinetic law object. |
NewOrder |
Object vector in the new order. If Warning As of 2017b, reordering rules has no effect on simulation results because the rules are evaluated as a unified system of constraints. For details, see Evaluation Order of Rules. |
Description
reorders
the component vector modelObj
= reorder(Obj
,NewOrder
)modelObj
to be in the order
specified.
Use this method to reorder any of the component vectors, such as compartments, events, parameters, rules, species, doses, and variants. When reordered, the vector of components must contain the same objects as the original list of objects, though they can be in a different order.
Examples
Version History
Introduced in R2007b