Differences
This shows you the differences between two versions of the page.
— |
reference:enginecellfun [2018/08/23 14:43] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== ENGINECELLFUN ===== | ||
+ | |||
+ | Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help enginecellfun". | ||
+ | |||
+ | <html><pre> | ||
+ | <a href=/reference/enginecellfun><font color=green>ENGINECELLFUN</font></a> applies a function to each element of a cell-array. The function | ||
+ | execution is done in parallel on locally or remotely running MATLAB engines. | ||
+ | |||
+ | Use as | ||
+ | argout = enginecellfun(fname, x1, x2, ...) | ||
+ | |||
+ | Optional arguments can be specified in key-value pairs and can include | ||
+ | UniformOutput = boolean (default = false) | ||
+ | StopOnError = boolean (default = true) | ||
+ | diary = string, can be 'always', 'never', 'warning', 'error' (default = 'error') | ||
+ | order = string, can be 'random' or 'original' (default = 'random') | ||
+ | |||
+ | Example | ||
+ | x1 = {1, 2, 3, 4, 5}; | ||
+ | x2 = {2, 2, 2, 2, 2}; | ||
+ | enginepool open 4 | ||
+ | y = enginecellfun(@power, x1, x2); | ||
+ | enginepool close | ||
+ | |||
+ | See also <a href=/reference/enginepool><font color=green>ENGINEPOOL</font></a>, <a href=/reference/enginefeval><font color=green>ENGINEFEVAL</font></a>, <a href=/reference/engineget><font color=green>ENGINEGET</font></a> | ||
+ | </pre></html> | ||