IRIS Toolbox Reference Manual

## iscompatible

True if two models can occur together on the LHS and RHS in an assignment

#### Syntax

    Flag = iscompatible(M1,M2)

#### Input arguments

- `M1`, `M2` [ model ] - Two model objects that will be tested for compatibility.

#### Output arguments

- `Flag` [ `true` | `false` ] - True if `M1` and `M1` can occur in an assignment, `M1(...) = M2(...)` or horziontal concatenation, `[M1,M2]`.

#### Description

The function compares the names of all variables, shocks, and parameters, and the composition of the state-space vectors.

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.