The MATLAB website has a worked-through example with instructions on how to compile a simple application and how to deploy it on another computer. In essence, you need to install the MATLAB Compiler Runtime together with your application. The installer for the runtime should already be present in your MATLAB compiler installation. To pass command-line arguments to a MATLAB executable, you define a single MATLAB function in the executable. The arguments to the function are taken from the command line parameters (the first command-line parameter is the first argument, and so on).
For example, create a file
with the following contents:
function exitcode = echo(a,b)
display(a)
display(b)
exitcode = 0;
end
You can then compile this file and run it with
and it will print
0 件のコメント
サインインしてコメントする。