Web Application from MATLAB through .Net Assembly

Web Application (MATLAB > Compiler SDK > Visual Studio)
Updated 19 Nov 2018

View License

Overview :

In this example, It demonstrates how to build web application in Visual Studio from MATLAB through .net assembly. As per my knowledge, there are 3 ways to build web application from MATLAB :
i) MATLAB Web App Server
ii) MATLAB Compiler SDK (.net, python, java)
iii) MATLAB Production Server
Here, I will not explain pros and cons of different ways to build web application. However, I'm strongly encourage you to explore them to identify which way is the best fit to your need.
The biggest challenge is data type conversion between MATLAB and .Net Assembly. It will be explained in my next script. Other than this, the server does not need a copy of MATLAB license, instead of that, you need to install the specific MATLAB runtime version in your server. MATLAB runtime is free. MATLAB Runtime download link
[This example requires you to run it section by section.]

Highlights :

Familiar with compilation of MATLAB function to .net assembly
Understand the basic of the conversion of data type between .net and MATLAB
How to use compiled .dll (from MATLAB) in Visual Studio
Configuration required to build Web application in Visual Studio/Server for MATLAB .net assembly

Product Focus :
Third-party Software required :
Visual Studio (This example uses Visual Studio 2017)

Written at 11 November 2018

In my next example, it explains data conversion between MATLAB and .NET.

Cite As

Kevin Chng (2024). Web Application from MATLAB through .Net Assembly (https://www.mathworks.com/matlabcentral/fileexchange/69401-web-application-from-matlab-through-net-assembly), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Get Started with MATLAB Compiler SDK in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Web Application

Version Published Release Notes

Add Next Example Link


1 step is missing - to allow VS to run web in 64bits