Setting-up MATLAB


Setting up MATLAB to work properly with the LTPDA Toolbox requires a few steps:

Add the LTPDA Toolbox to the MATLAB path

After downloading and un-compressing the LTPDA Toolbox, you should add the directory ltpda_toolbox to your MATLAB path. To do this:

Edit the LTPDA startup script

The LTPDA Toolbox comes with a default ltpda_startup.m file. This may need to be edited for your particular system (though most of the defaults should be fine). To edit this file, do >> edit ltpda_startup at the MATLAB command prompt. The following table lists the various variables that are set there:

Variable Values Description

USE_LTPDA_PRINT_SETTINGS

'Yes' or 'no'

Choose the LTPDA Print settings, or stick with your own (MATLAB) defaults.

USE_LTPDA_PLOT_SETTINGS

'Yes' or 'no''

Choose the LTPDA Plot settings, or stick with your own (MATLAB) defaults.

DBHOST

'192.168.10.1' or 'bob.foo.com'

IP Address or resolvable hostname of the machine hosting the AO Repository.

DBUSER

'bob'

A valid username for connecting to the AO Repository database.

DBPASSWD

'letmein'

The password for the above username on the AO Repository database.

DBNAME

'aod'

The name of the database on the AO Repository database.

DBDRIVER

'com.mysql.jdbc.Driver'

The name of the database driver for the Database Toolbox. The MySQL driver is shown here.

Automatically start LTPDA Toolbox on starting MATLAB

In order to automatically load the LTPDA Toolbox settings when MATLAB starts up, add the command ltpda_startup to your own startup.m file. See >> doc startup for more details on installing and editing your own startup.m file.




©LTP Team