File Exchange

image thumbnail

Web Application from MATLAB through .Net Assembly

version 1.0.2 (994 KB) by Kevin Chng
Web Application (MATLAB > Compiler SDK > Visual Studio)

7 Downloads

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 :
MATLAB
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.
https://www.mathworks.com/matlabcentral/fileexchange/69469-data-conversion-between-matlab-and-net-in-visual-studio

Cite As

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 .

Comments and Ratings (4)

Oman Wisni

@Mr.Kevin, Thanks for your answer.

Kevin Chng

Hi Oman Wisni,

refer the link below to download the MATLAB runtime
https://www.mathworks.com/products/compiler/matlab-runtime.html

It has stated which version to download for R2015a

Oman Wisni

@Mr.Kevin, I uses MATLAB R2015a, which one should I use for MATLAB Runtime download link ?

Oman Wisni

Can't klik link download MATLAB runtime

Updates

1.0.2

Add Next Example Link

1.0.1

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

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Web Application