Changes between Version 14 and Version 15 of MATLAB API
- Timestamp:
- 02/20/14 13:33:59 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MATLAB API
v14 v15 31 31 * `MUSCLE_BOOLEAN` - array of logicals 32 32 33 In the MUSCLE configuration file, kernels should use the `muscle.core.standalone.MatlabKernel` class or its subclass as their implementation, e.g.:33 In 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. 34 34 {{{ 35 w = Instance.new('w', 'muscle.core.standalone.MatlabKernel')35 w = MatlabInstance.new('w', 'my/matlab/script.m') 36 36 }}} 37 37 38 The script that is going to be executed must be set in the `script` property of the instance, e.g.: 38 In the constructor, the Matlab executable and its arguments, the Java class and script arguments can be specified 39 39 {{{ 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" 40 w = MatlabInstance.new('w', 'my/matlab/script.m', matlab: '/opt/bin/matlab', matlab_args: '-matlab_arg1 -matlab_arg2', java_class: 'company.MyMatlabJavaInstance') 48 41 }}} 49 42 == Example ==