Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Remote Execution of Local Code

Subject: Remote Execution of Local Code

From: Cody

Date: 26 May, 2012 20:57:21

Message: 1 of 2

Hello, for a large number of reasons I'm trying to find a way to execute code on a remote RHEL 6.0 Linux machine from a local OSX machine over a network. Ideally, I'd issue a command in the local Matlab command window, and the command would somehow be sent over the network to the remote Linux machine where it is executed, and the output and associated variables are subsequently available in the local Matlab command window on my local OSX machine as if they resided in local memory (but actually reside in the memory on the remote machine). Furthermore, I could run scripts with supporting functions from the local Matlab editor window which would execute on the remote machine, again with the output being displayed locally, and where I would have local access to the variables which actually reside in memory on the remote machine.

Finally, I'd like to setup multiple remote Linux machines, and have the same code run on all the remote machines when executed from within a single Matlab command window on the local OSX machine, again where the output from the code executed on the remote machines and the associated variables are available from within the local invocation of Matlab.

I've read that perhaps the Parallel Computing toolbox will allow me to do this, however, I was wondering if this is the best approach, and what suggestions the community would have on making this happen.

Thanks everyone,
-Cody

Subject: Remote Execution of Local Code

From: Cody

Date: 30 May, 2012 16:48:06

Message: 2 of 2

"Cody" wrote in message <jprg3g$dp$1@newscl01ah.mathworks.com>...
> Hello, for a large number of reasons I'm trying to find a way to execute code on a remote RHEL 6.0 Linux machine from a local OSX machine over a network. Ideally, I'd issue a command in the local Matlab command window, and the command would somehow be sent over the network to the remote Linux machine where it is executed, and the output and associated variables are subsequently available in the local Matlab command window on my local OSX machine as if they resided in local memory (but actually reside in the memory on the remote machine). Furthermore, I could run scripts with supporting functions from the local Matlab editor window which would execute on the remote machine, again with the output being displayed locally, and where I would have local access to the variables which actually reside in memory on the remote machine.
>
> Finally, I'd like to setup multiple remote Linux machines, and have the same code run on all the remote machines when executed from within a single Matlab command window on the local OSX machine, again where the output from the code executed on the remote machines and the associated variables are available from within the local invocation of Matlab.
>
> I've read that perhaps the Parallel Computing toolbox will allow me to do this, however, I was wondering if this is the best approach, and what suggestions the community would have on making this happen.
>
> Thanks everyone,
> -Cody

Does anyone have any suggestions for the Matlab development path and tools required to implement what I've described above?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us