IRIS Toolbox Reference Manual

dbsearchuserdata

Search database to find tseries by matching the content of their userdata fields

Syntax

[List,SubD] = dbsearchuserdata(D,Field1,Regexp1,Field2,Regexp2,...)
[List,SubD] = dbsearchuserdata(D,Flag,Field1,Regexp1,Field2,Regexp2,...)

Input arguments

Output arguments

Description

For a successful match, the userdata must be a struct, and the tested fields must be text strings.

Use an equal sign, =, after the name of the userdata fields in Field1, Field2, etc. to request a case-insensitive match, and an equal-shart sign, =#, to indiciate a case-sensitive match.

Example

[list,dd] = dbsearchuserdata(d,'.DESC=','Exchange rate','.SOURCE=#','IMF');

Each individual tseries object in the database D will be tested for two conditions:

All tseries object that pass both of these conditions are returned in the List and the output database D.