Name

dblist — gives the content of a database

CALLING SEQUENCE

[l]=dblist(filein,arg1,…,argn)

PARAMETERS

Input

• filein = name of the database

• argi=

 - 'matlab' if the database is a matlab one

 - a string of the type '***xxx****', '>xxx', 'xxx>'  or '>xxx>;' to search data whose names contain the specified character 'xxx' either at a precise place (case of stars) or at any place (case of '>')

Output

• l = column vector containing the names of variables in the database

DESCRIPTION

Gives the content of a database

EXAMPLE


1) dblist(GROCERDIR+'/macros/grocer/db/datajpl.dat')

 

Gives the content of James Le Sage database.  

 

The results is: 

!westvirginia  !

!              !

!tennesse      !

!                !

!pennsyvlania  !

!                !

!ohio          !

!                !

!michigan      !

!                !

!kentucky      !

!                !

!indiana       !

 

 2)dblist(GROCERDIR+'/macros/grocer/db/datajpl.dat','>enn>') 

 

Gives the names in  James Le Sage database that contain the string 'enn' in the middle of the name 

 

The results is: 

 

!tennesse      ! 

!              !

!pennsyvlania  !

 

3) dblist(GROCERDIR+'/macros/grocer/db/datajpl.dat','*enn****') 

 

Gives the names in  James Le Sage database. that has exactly 8 characters and contain the string 'enn' from the second character until the fourth . 

 

The results is: 

 

!tennesse      ! 

 

 



               

AUTHOR

Eric Dubois 2002-2009