Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to link between c# and matlab, the matlab project i have is producing an image ,that i want to use in c# after the project of the matlab finishes.please help me.
Posted

You can start from here: http://www.mathworks.com/help/techdoc/matlab_external/brpb5k6-1.html[^].

[EDIT in response to the follow-up comment by OP:]

3ssal wrote:
The problem that I have a very limited time… is there a simple way or a direct way to do the linking?? [Spelling fixed — SA]


Sorry, I don't have an opportunity do donate much more of my time for this problem. I think I already donated some reasonable time to you in order to help you.

What is not simple enough? You are the most interested person, you know what to start with and you should know what to do next: dig in the API, obtain the binding assembly from MathWorks, search for some simple code samples. Moreover, you have more information on what particular functionality you need to implement. You pay your time for your needs, not our time which we already devoted to help you and others, isn't this fair?

We are neither the developers of your team, nor your tutors. We address particular concern. You really should do your work and use your own resources. We will gladly help if you are stuck and can formulate the particular problem you need help with.

—SA
 
Share this answer
 
v6
Comments
3ssal 24-Jan-12 13:02pm    
The problem that i have a very limited time....is there a simple way or a direct way to do the linking??
Sergey Alexandrovich Kryukov 24-Jan-12 16:40pm    
Hm... Please see my update, after [EDIT].

I think I'm fair enough and my answer is adequate. Based on that I suggest you accept my answer formally (green button) -- thanks.
--SA
Espen Harlinn 24-Jan-12 15:59pm    
Good link :)
Sergey Alexandrovich Kryukov 24-Jan-12 16:28pm    
Thank you, Espen.
--SA
Legor 21-Feb-12 11:44am    
Im allways impressed how you can explain what this site is not for so patiently.
Can you just save the image created by the Matlab program, and then open it in the C# application? That seems like it could be the simplest solution (maybe not the most ideal).
 
Share this answer
 
Comments
Espen Harlinn 24-Jan-12 16:00pm    
Should work well enough :)
Control matlab using COM:
Examples of a MATLAB Automation Server[^] - otherwise do as lewax00 suggests.

That's how I sometimes use matlab at work :)

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Jan-12 16:41pm    
Could help OP, my 5. Please also see my edited answer after [EDIT] in response to OP's comment. I hope this is fair.
Thank you for this piece of teamwork!
--SA
Espen Harlinn 24-Jan-12 16:58pm    
Fair enough :)
I'm currently working on a risk assement tool that uses mathlab for calculations, and I control mathlab through the automation interfaces.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900