diff options
author | Jose <jose@zeroc.com> | 2017-10-18 22:41:43 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-10-18 22:41:43 +0200 |
commit | 978134b8e20cf5a3b25cbcfc943c44e82e5c1f5f (patch) | |
tree | e26ae19c259fd622952522f19de19f0b63c678f4 /matlab/lib/slice2matlab.m | |
parent | Doc edits (diff) | |
download | ice-978134b8e20cf5a3b25cbcfc943c44e82e5c1f5f.tar.bz2 ice-978134b8e20cf5a3b25cbcfc943c44e82e5c1f5f.tar.xz ice-978134b8e20cf5a3b25cbcfc943c44e82e5c1f5f.zip |
Documentation fixes
Diffstat (limited to 'matlab/lib/slice2matlab.m')
-rw-r--r-- | matlab/lib/slice2matlab.m | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/matlab/lib/slice2matlab.m b/matlab/lib/slice2matlab.m index 61627ed8888..c83079904fb 100644 --- a/matlab/lib/slice2matlab.m +++ b/matlab/lib/slice2matlab.m @@ -1,11 +1,18 @@ -function [status, out] = slice2matlab(args) +function status = slice2matlab(args) - % slice2matlab Summary of slice2matlab + % SLICE2MATLAB Compile Slice files. % - % A wrapper function to call Slice to MATLAB compiler slice2matlab.exe. + % Compiles Slice files using the Slice-to-MATLAB compiler + % included with the Ice toolbox. % % Parameters: - % args - arguments passed to slice2matlab.exe. + % + % args - The arguments passed to the Slice-to-MATLAB compiler, + % specified as a string. + % + % Returns: + % + % status - The Slice-to-MATLAB compiler exit status code. % Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved. @@ -28,7 +35,7 @@ function [status, out] = slice2matlab(args) '..\msbuild\packages\zeroc.ice.v140\build\native\tools\slice2matlab.exe'}, rootDir, 2); searchPath = findFile({'..\slice' '..\..\slice'}, rootDir, 7); - + out = ''; if isempty(path) status = 1; out = 'Cannot locate slice2matlab.exe\n'; @@ -36,7 +43,7 @@ function [status, out] = slice2matlab(args) status = 1; out = 'Cannot locate slice dir.\n'; else - [status, out] = system(sprintf('%s -I%s %s', path, searchPath, args)); + status = system(sprintf('%s -I%s %s', path, searchPath, args)); end if ~isempty(out) |