Using the MATLAB client sample

A sample, called sample.m, is provided with is located in the IBM® Spectrum Symphony Developer Edition. Modify this sample to suit your environment.

About this task

The sample.m sample is located in the following directory:
  • Windows: %SOAM_HOME%\version\samples\Matlab\
  • Linux®:

    $SOAM_HOME/version/samples/Matlab/ (For Matlab R2015b)

    $SOAM_HOME/version/samples/Matlab/R2010b (For Matlab R2010b)

Procedure

  1. Modify sample.m based on your environment:
    1. Change the data location on line 10. It should be a network shared file system path that can be read and written from all client hosts.
    2. Change the compute hosts' MATLAB installation root path on line 16.
    3. The sample uses Admin as an example for both the username and password. On line 19, replace Admin with the real username and password for your cluster.
  2. Enable application symexecversion:
    soamcontrol app enable symexecversion
  3. Start MATLAB:
    1. Open the command console.
    2. Source client profile:
      • Linux: source ${SOAM_HOME}/profile.client
      • Windows: %SOAM_HOME%\version\w2k3_x64-vc7-psdk\bin\symclientenv.bat
    3. In the same console window, run the command matlabto start MATLAB.
  4. Add the directories of the integration scripts and sample.m into the MATLAB search path. On Windows, MATLAB R2012b and later versions all use the scripts under the %SOAM_HOME%\integration\Matlab\R2012b\ directory.
  5. Run the sample.