Is it possible to call matlab functions from Silverlight / C#?

我是研究僧i 提交于 2019-12-23 12:43:18

问题


Is it possible to call matlab functions from Silverlight / C# ?


回答1:


If you have an assembly (dll) that can interpret Mathlab calls, you should be able to include that assembly in your project and compile it with the rest of your application.

Obviously, you won't be able to run Silverlight side-by-side to interface with an installed instance of Matlab (unless the API is exposed through COM interop and using Silverlight 4, but that could get messy).

The Web API on sourceforge, as mentioned by Matt, seems like a really good fit if you can't find assemblies to include directly within your Silverlight application. Read my comments there for further thoughts.




回答2:


I dont think this will be possible for Silverlight that you are intending to run in the browser, although you certainly could using WPF as a Windows app.

However you could expose Matlab functionality as a webservice using Matlab Server Pages (MSP), and then consume the fucntionlaity from silverlight.

http://msp.sourceforge.net

Of particular interest isthis tutorial showing how to access a MSP webservice from C#.

http://msp.sourceforge.net/Tutorial/tutor13.htm




回答3:


You can use the Matlab API for .NET




回答4:


You will find your answer on this page http://tech-michael.blogspot.com/2010/01/silverlight-communicating-with-matlab.html

I hope this helps.



来源:https://stackoverflow.com/questions/2207851/is-it-possible-to-call-matlab-functions-from-silverlight-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!