Difference between revisions of "How Do I Configure the Matlab Interface?"
Line 29: | Line 29: | ||
<tt> | <tt> | ||
[Matlab] | [Matlab] | ||
+ | |||
Platform=64 | Platform=64 | ||
</tt> | </tt> |
Revision as of 15:45, 7 March 2016
MATLAB must be installed
For step 2 (required for MATLAB versions 2009b and over), we need to know whether the 32-bit or 64-bit version of MATLAB is installed. We also need to know the path to the Matlab installation (e.g. c:\Program Files\MATLAB\2009b\).
PATH environment variable
For versions 2009b and over, make sure that the path to the Win32 or Win64 folder in the MATLAB installation to the PATH environment variable is defined:
- The path for the 64-bit version for Matlab 2009b is typically c:\Program Files\MATLAB\R2009b\bin\win64. For the 32-bit version, the path is typically c:\Program Files\MATLAB\R2009b\bin\win32.
- Open the "System Properties" Dialog by holding down the Windows key and pressing the Pause key at the same time.
- In XP, the dialog is opened directly.
- In Vista and Window 7, the key combination opens the System Display. Click on the link "Change Settings".
- In Windows 8, the key combination also opens the System Display. Click on the link “Advanced system settings”. Skip the step in this description, as you have already chosen the advanced settings.
- Select the "Advanced" tab.
- Press the "Environment Variables" button.
- Under "System variables" click on the "Path" variable and press "Edit". In the resulting dialog, enter a semicolon (;) at the end of the path string, and add the path after the semicolon.
- Press "OK" to close and save the path variable. Press "OK" to close the "System Properties" Dialog. When using Windows Vista/7/8, you will also need to close the Control Panel window afterwards.
Additional configuration
(only required after a change of your MATLAB configuration after installation of BESA Research)
During the installation process of BESA Research, the program "SetupBesaMatlabInterface.exe" in the BESA Research root folder was executed. Run this program again when your MATLAB configuration has changed, e.g. after updating your MATLAB version.
In the dropdown list, select the Matlab version that you are using. This program performs two operations:
- it copies the appropriate interface Dll to the BESA Research root folder and renames it to "BesaMatlab.dll" (32-bit version) or "BesaMatlab64.dll" (64-bit version), and
- if you are using a 64-bit version it creates an entry in BESA.ini as follows:
[Matlab]
Platform=64