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
attrXis a string or vector of strings. The function then returns thequantitiesandequationsthat have at least on of theattr1attributes and at least one of theattr2attributes, and so on.
Output arguments
quantities [ string ]
List of the quantities (variables, shocks, parameters) that have at least on of the
attr1attributes and at least one of theattr2attributes, and so on.
equations [ string ]
List of the equations that have at least on of the
attr1attributes and at least one of theattr2attributes, and so on.