How can I use the program developed by C# and matlab in the other computer without matlab? It is very important for me!!!!!!
古いコメントを表示
I wrote a C# program using Visual Studio 2008 that incorporates Matlab functions. I started out with a basic program:
MLApp.MLAppClass matlab = new MLApp.MLAppClass();
matlab.Visible = 0;
string ans = matlab.Execute("3+5");
System.Console.WriteLine(ans);
It works fine on the development computer, but when I try to deploy it to another computer I get the following error:
Retrieving the COM factory for component with CLSID {07FB7FDD-3B80-4D41-A793-326AC619EA11} failed due to the following error: 80040154. And it say that system.runtime interopservices.comexception is error. I did run the MCRInstaller.exe (found in the original computers installation folder) on the second computer, but I still have the above error.
1 件のコメント
Daniel Shub
2012 年 4 月 27 日
I think this is still appropriate: http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
I am sure that this question is very important to you, but it is not so important to those who volunteer their time to answer questions here. Do you expect us to spend more time, or get to your question quicker because it is important to you?
回答 (1 件)
Kaustubha Govind
2012 年 4 月 27 日
1 投票
It looks like you are invoking the MATLAB COM Server from C# on the development machine which requires a full install of MATLAB. Installing the MCR won't do.
If you'd like to use Builder NE instead, you need to use "deploytool" to build a COM component from your MATLAB code and then load that from C#. See http://www.mathworks.com/help/toolbox/dotnetbuilder/ug/f6010dfi10.html
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!