IRIS Toolbox Reference Manual

## dat2dec

Convert dates to their decimal representations

#### Syntax

    Dec = dat2dec(Dat)
    Dec = dat2dec(Dat,Pos)

#### Input arguments

- `Dat` [ numeric ] - IRIS serial date number.

- `Pos` [ `'start'` | `'centre'` | `'end'` ] - Point within the period that will represent the date; if omitted, `Pos` is set to `'start'`.

#### Output arguments

- `Dec` [ numeric ] - Decimal number representing the input dates, computed as `year + (per-1)/freq`.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.