IRIS Toolbox Reference Manual

db2array

Convert tseries database entries to numeric array

Syntax

[X,Incl,Range] = db2array(D)
[X,Incl,Range] = db2array(D,List)
[X,Incl,Range] = db2array(D,List,Range)

Input arguments

Output arguments

Description

The output array, X, is always NPer-by-NList-by-NAlt, where NPer is the length of the Range (the number of periods), NList is the number of tseries included in the List, and NAlt is the maximum number of columns that any of the tseries included in the List have.

All tseries with more than one dimension (i.e. with more than one column) are always expanded along 3rd dimension only. For instance, a 10-by-2-by-3 tseries will occupy a 10-by-1-by-6 space in X at its respective location.

Example