IRIS Toolbox Reference Manual

## sprintf

Print VAR model as formatted model code

#### Syntax

    [C,D] = sprintf(V,...)

#### Input arguments

- `V` [ VAR ] - VAR object that will be printed as a formatted model code.

- Output arguments

- `C` [ cellstr ] - Text string with the model code for each parameterisation.

- `D` [ cell ] - Parameter database for each parameterisation; if `'hardParameters='` is true, the databases will be empty.

#### Options

- `'decimal='` [ numeric | empty ] - Precision (number of decimals) at which the coefficients will be written if `'hardParameters='` is true; if empty, the `'format='` options is used.

- `'declare='` [ `true` | `false` ] - Add declaration blocks and keywords for VAR variables, shocks, and equations.

- `'eNames='` [ cellstr | char | empty ] - Names that will be given to the VAR residuals; if empty, the names from the VAR object will be used.

- `'format='` [ char | '%+.16g' ] - Numeric format for parameter values; it will be used only if `'decimal='` is empty.

- `'hardParameters='` [ `true` | `false` ] - Print coefficients as hard numbers; otherwise, create parameter names and return a parameter database.

- `'yNames='` [ cellstr | char | empty ] - Names that will be given to the variables; if empty, the names from the VAR object will be used.

- `'tolerance='` [ numeric | getrealsmall() ] - Treat VAR coefficients smaller than `'tolerance='` in absolute value as zeros; zero coefficients will be dropped from the model code.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.