Skip to content

Getting started with NeqSim in Matlab

Even Solbraa edited this page Sep 5, 2019 · 25 revisions

The following steps describes how to set up NeqSim Matlab for first use:

1. Dowonload NeqSim Matlab to the local disk

Download or Clone neqsim matlab to your local disk from the neqsim matlab main page.

2. Update the pathstring variable in pathNeqSim.m file

The pathNeqSim.m file needs to be set up with the correct path to the installation. The pathstring variable has to be set to the base directory where neqsimmatlab is on the local disk.

pathstring = 'C:\.......\neqsimmatlab\';

3. Set up the database connection Changing the database is only necessary if an external database will be used. By default neqsimmatlab uses the embedded parameter database (Derby database). If an external database will be used, the connection string to the database need to be modified in pathNeqSim.m:

neqsim.util.database.NeqSimDataBase.setDataBaseType("Derby"); neqsim.util.database.NeqSimDataBase.setConnectionString("jdbc:derby:classpath:......");

4. Run the pathNeqSim.m script

The script sets up the path to the local neqsim matlab installation and makes the neqsim java library (NeqSim.jar) available to Matlab. I also adds needed directories (example/lib/..) to the Matlab path.

5. Run an example script check that neqsimmatlab works correctly:

Run the ex2.m script in Matlab.

See more examples of Matlab calculations

Clone this wiki locally