Changes between Version 14 and Version 15 of MATLAB API

Show
Ignore:
Timestamp:
02/20/14 13:33:59 (11 years ago)
Author:
jorisborgdorff
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MATLAB API

    v14 v15  
    3131* `MUSCLE_BOOLEAN` - array of logicals 
    3232 
    33 In the MUSCLE configuration file, kernels should use the `muscle.core.standalone.MatlabKernel` class or its subclass as their implementation, e.g.: 
     33In the MUSCLE configuration file, kernels should use the `muscle.core.standalone.MatlabKernel` class or its subclass as their implementation, and MatlabInstance as the CxA counterpart. 
    3434{{{ 
    35 w = Instance.new('w', 'muscle.core.standalone.MatlabKernel') 
     35w = MatlabInstance.new('w', 'my/matlab/script.m') 
    3636}}} 
    3737 
    38 The script that is going to be executed must be set in the `script` property of the instance, e.g.: 
     38In the constructor, the Matlab executable and its arguments, the Java class and script arguments can be specified 
    3939{{{ 
    40 w['script'] = 'my/matlab/script.m' 
    41 }}} 
    42 If the script requires additional arguments, they may be set in the `args` property. 
    43  
    44 If the `matlab` executable is not in the path, or if additional arguments to MATLAB are necessary to run the script, the properties `matlab_command` and `matlab_args` can be set in the configuration file, e.g., 
    45 {{{ 
    46 w['matlab_command'] = "/opt/bin/matlab" 
    47 w['matlab_args'] = "-matlab_arg1 -matlab_arg2" 
     40w = MatlabInstance.new('w', 'my/matlab/script.m', matlab: '/opt/bin/matlab', matlab_args: '-matlab_arg1 -matlab_arg2', java_class: 'company.MyMatlabJavaInstance') 
    4841}}} 
    4942== Example ==