How to pass images from a matlab program to a c# program?

3 views (last 30 days)
Please any one help me to pass data and images from a program in matlab to a program in c# . Both programs will be running simultaneously in same system or in a network.
I want something like remoting or memory share concept.
I searched a lot and most of the result I found is something like accessing whole matlab program as a DLL in C#, which is not feasible for me. I want both the programs to run independently and can communicate.

Answers (1)

Guillaume
Guillaume on 20 Aug 2014
Matlab can interact with .Net classes so it should be fairly easy to send data to yourCc# program. Matlab can also listen for .Net events so you could raise an event in your C# program to tell Matlab to fetch back some data if you want bidirectional communication.
It's all fairly well explained in Matlab's documentation: http://www.mathworks.co.uk/help/matlab/using-net-libraries-in-matlab.html

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!