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:
Inter-application data sharing

Subject: Inter-application data sharing

From: Srikanth

Date: 4 Jun, 2011 03:14:40

Message: 1 of 3

Hi

I was wondering how best to go about sharing data between Matlab and
other applications - I am familiar with .NET and COM, but I was hoping
for a more cross-platform approach. Is XML/ SOAP a good way to go
about it? Or Java/RMI? Ideally, I would like to call Matlab commands
natively (without Matlab being active in the foreground - similar to
using the Matlab engine in C), but I don't mind having Matlab actively
running either.

Thanks
Srikanth

Subject: Inter-application data sharing

From: Yair Altman

Date: 4 Jun, 2011 17:50:19

Message: 2 of 3

Srikanth <skt@xdtech.com> wrote in message <5af0681e-4fe5-4a78-9baa-e5a5c54ee3b4@h36g2000pro.googlegroups.com>...
> Hi
>
> I was wondering how best to go about sharing data between Matlab and
> other applications - I am familiar with .NET and COM, but I was hoping
> for a more cross-platform approach. Is XML/ SOAP a good way to go
> about it? Or Java/RMI? Ideally, I would like to call Matlab commands
> natively (without Matlab being active in the foreground - similar to
> using the Matlab engine in C), but I don't mind having Matlab actively
> running either.
>
> Thanks
> Srikanth

You can run Matlab as an application COM server and invoke its commands from your external applications. From Java, you can use JMI or JNI - there are several resources on these online (http://UndocumentedMatlab.com/blog/tag/jmi/ for example).

Or you can purchase one of the MathWorks compilers to be able to access Matlab from .Net, Java or Excel.

Yair Altman
http://UndocumentedMatlab.com

Subject: Inter-application data sharing

From: Srikanth

Date: 6 Jun, 2011 21:57:34

Message: 3 of 3

>
> You can run Matlab as an application COM server and invoke its commands from your external applications. From Java, you can use JMI or JNI - there are several resources on these online (http://UndocumentedMatlab.com/blog/tag/jmi/ for example).
>
> Or you can purchase one of the MathWorks compilers to be able to access Matlab from .Net, Java or Excel.
>
> Yair Altman
> http://UndocumentedMatlab.com

Hi

Thank you for the information. I guess a COM server offers a lot of
flexibility, and I can scale it using some scripting and sharing it
over an intranet, if necessary. The Java-Matlab link looked promising,
but I am a bit hesitant since it isn't officially supported.

Thanks

Tags for this Thread

No tags are associated with 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