byAttributes
(Model)
Look up model quantities and equation by attributes
Syntax
[quantities, equations] = byAttributes(model, attr1, attr2, ...)
Input arguments
model
[ Model ]
Model object that will be searched for quantities and equations by their attributes.
attr1
, attr2
, ... [ string ]
Each
attrX
is a string or vector of strings. The function then returns thequantities
andequations
that have at least on of theattr1
attributes and at least one of theattr2
attributes, and so on.
Output arguments
quantities
[ string ]
List of the quantities (variables, shocks, parameters) that have at least on of the
attr1
attributes and at least one of theattr2
attributes, and so on.
equations
[ string ]
List of the equations that have at least on of the
attr1
attributes and at least one of theattr2
attributes, and so on.