Creating a Data Set from a Database
Introduction
If you have the MATLAB Database Toolbox, Rave can pull data from a compatible database to use as a Rave data set. This page describes the steps you need to take to link Rave to a database and describes how Rave behaves differently when your data is stored in a database.
Connecting Rave to a Database
To link Rave to a database, you must have the Database Toolbox installed. If you do not have the database toolbox, you cannot use Rave with your databases.
To connect to a database, you must first set up a connection in MATLAB. This only needs to be done once, ever, for each data source. (Not every time you start Rave or MATLAB, or even if you install a new version of Rave or MATLAB)
- Type "querybuilder" to open the Visual Query Builder dialog box.
- If you get an error, it means you don't have the Database Toolbox installed.
- Select "Define ODBC Data Source" from the Query Menu.
- Follow the prompts to create a new data source (see MATLAB help for more information).
- Note the name that you give your data source. This is what you will type into Rave to link to this database.
- When you are done, close the Visual Query Builder
If you forget what you named the data source, you can see a list of all data sources you have defined by typing "getdatasources" at the MATLAB prompt.