Web Application from MATLAB through .Net Assembly
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 (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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.