IRIS Toolbox Reference Manual

## shockplot

Short-cut for running and plotting plain shock simulation

#### Syntax

    [S,FF,AA] = shockplot(M,ShockName,SimRange,PlotList,...)

#### Input arguments

- `M` [ model ] - Model object that will be simulated.

- `ShockName` [ char ] - Name of the shock that will be simulated.

- `SimRange` [ numeric ] - Date range on which the shock will be simulated.

- `PlotList` [ cellstr ] - List of variables that will be reported; you can use the syntax of `dbase/dbplot`.

#### Output arguments

- `S` [ struct ] - Database with simulation results.

- `FF` [ numeric ] - Handles of figure windows created.

- `AA` [ numeric ] - Handles of axes objects created.

#### Options affecting the simulation

- `'deviation='` [ `true` | `false` ] - See the option `'deviation='` in `model/simulate`.

- `'dtrends='` [ `true` | `false` ] - See the option `'dtrends='` option in `model/simulate`.

- `'shockSize='` [ `'std'` | numeric ] - Size of the shock that will be simulated; `'std'` means that one std dev of the shock will be simulated.

#### Options affecting the graphs

See help on `dbase/dbplot` for other options available.

#### Description

The simulated shock always occurs at time `t=1`. sStarting the simulation range, `SimRange`, before `t=1` allows you to simulate anticipated shocks.

The graphs automatically include one pre-sample period, i.e. one period prior to the start of the simulation.

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.