Skip to content

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 the quantities and equations that have at least on of the attr1 attributes and at least one of the attr2 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 the attr2 attributes, and so on.

equations [ string ]

List of the equations that have at least on of the attr1 attributes and at least one of the attr2 attributes, and so on.

Description

Examples