with_matlab | R Documentation |
Utility that starts a matlab server, initialises an R.matlab
Matlab
instance connected to the Matlab server and passes it to
a single arity input function. Therefore code inside the input function has
access to the Matlab
instance. Once the function has completed
execution or if a failure occurs, the Matlab
instance is
disconnected and the Matlab server shutdown.
with_matlab(fn, trials = 60, interval = 1, ...)
fn |
Single arity function that accepts an initialised/connected
|
trials |
maximum number of times to poll server for results. |
interval |
interval at which to poll server to check for results. |
... |
passed as arguments to |
results of the input fn
function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.