Step by step MATLAB function deployment to end user
Show older comments
It will be great if multiple ways of deployment to end user are explained step-by-step along with when to what (EXE vs COM vs Library...) in layperson language. Current Problem:
I have Visual C# application which calls MATLAB Functions. I need to deploy this function to end user without providing .m files. I tried making standalone EXE and distributing with MCRInstaller; it did not work.
On Windows 64 bit system:
I have a Visual C# GUI application which uses COM object for MATLAB and calls MATLAB function1. Function1 in turn calls function2 and then function1 returns a value to be used by GUI.
To deploy this product to end user, I created a standalone EXE and downloaded MCRInstaller. Then 1. Executed MCRInstaller and completed installation in say c:\M 2. Updated PATH which now does include c:\M\v84\bin\win64 3. Now I ran my application on that machine which gives MATLAB Exception
How to solve this problem?
Answers (1)
Steven Lord
on 10 Sep 2015
1 vote
This process is described in the MATLAB Compiler product documentation. If there are particular steps in that process that you think are unclear or about which you'd like more information, I recommend using the "Was this topic helpful?" buttons in the lower-right corner of the appropriate documentation page to request specific additions/modifications to the documentation page.
If you receive an exception when you attempt to run your application, you should search Answers for the specific message and contact Technical Support (using the Contact Us link in the upper-right corner of mathworks.com) for further debugging assistance if that search doesn't reveal a solution to that exception problem.
2 Comments
Sheela Jain
on 11 Sep 2015
- Have you tried creating a .NET assembly and using it in your C# application? Some examples are listed here
- I am unsure what error you're observing but some troubleshooting steps are listed here .
- The overview tab and the videos tab, specifically video 4 on Getting Started with .NET ... will assist you. Here's the link
Quick Summary: Most likely you need to create a .NET assembly (a .dll file), reference it and MWArray.dll in your C# application, install the MATLAB Runtime on the machine where your C# application will run, compile your C# application and execute it.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!