Set your MATLAB component preferences to use the Java Socket interface. For more information, see Setting MATLAB Component Preferences. For the Java Socket interface, you need to specify the location of the MATLAB executable. You can specify the location by defining an environment variable named MATLAB or by defining a Java system property. You can define an environment variable by editing a Linux logon script or editing a Windows system property. You can omit the MATLAB executable name from the definition of the environment variable. The MATLAB component runtime code appends the name if it is not present. This is done so that current users of the Native Code interface may switch to the Java Socket interface without editing their environment. If you define a Java system property, the existing value of the environment variable, if any, is overwritten for the current Isight session. Defining the MATLAB Executable Location with a Logon ScriptOn Linux systems you can define the environment variable named MATLAB in one of your logon scripts (e.g., .login, .shrc, .profile, or, depending on your preferred shell – .cshrc, etc.). For example, if you use sh (standard shell) on Linux, you may add lines similar to the following to your .shrc script: MATLAB=/opt/mathworks/matlab_2006b/bin export MATLAB Defining the MATLAB Executable Location with a System PropertyOn Windows systems you can define the environment variable named MATLAB by editing your system properties. From your desktop, do the following:
Defining the MATLAB Executable Location with a Java System PropertyYou can define the MATLAB executable location by defining a Java system property named fiper.comp.matlab.command. Do one of the following:
|