Database:

Path: Common/Database

% GUI to output the value of a constant. q must be an exact match.
 Case and spaces have no effect. To search for a string (without
 using the GUI) type Database( searchString, 'find' ). You must
 initialize the database before using it. The first time you call
 Database type:

     Database( 'fullFileName' )

 or

     Database

 The second option will bring up a file selection dialog box. The
 database expects a tab separated text file of the form:

     name value units reference

 For a demonstration type

     Database('Sample.db')

 Once you open a database you cannot open another one with the command

     Database(fileName)

 since after opening all inputs are assumed to be database searches. Use
 clear to reset the function for a new database.

 This function works the same as Constant.
--------------------------------------------------------------------------
   Form:
   [x, u] = Database( q, gUICode )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   q               (1,:)  String describing the constant
   gUICode         (1,:)  GUI code

   -------
   Outputs
   -------
   x               (1,1)  The value
   u               (1,:)  Units (if applicable)

--------------------------------------------------------------------------

Children:

Common: General/Num2Str1Line
builder: Templates/HelpSystem

Back to the Common Module page