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.]
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 :
MATLAB Compiler SDK
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.
Kevin Chng (2019). 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 .
@Mr.Kevin, Thanks for your answer.
Hi Oman Wisni,
refer the link below to download the MATLAB runtime
It has stated which version to download for R2015a
@Mr.Kevin, I uses MATLAB R2015a, which one should I use for MATLAB Runtime download link ?
Can't klik link download MATLAB runtime
Add Next Example Link
1 step is missing - to allow VS to run web in 64bits