FUNCTION REFERENCE
batch
Run a script or function as a batch job; runs at once in MatRust.
Run a script or function as a batch job; runs at once in MatRust.
Syntax
j = batch('script')Syntax
j = batch(fcn, n, {x1, ..., xm})The script runs immediately in the client workspace, so load(j) has nothing to copy. The function form calls fcn with n outputs; fetchOutputs(j) returns them in a 1-by-n cell array. wait(j) returns at once.
Example
j = batch(@plus, 1, {2, 3}); r = fetchOutputs(j); % r = {5}Differences from MATLAB: Runs serially in MatRust, at the call; scripts share the client workspace. Name-value options are ignored.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.