How to deploy MATLAB script as an executable to run on a server for a website

8 views (last 30 days)
I worked on a MATLAB script to process a video and return a CSV file of the data gathered. At the moment I am using Python to run the MATLAB script and take the data and display it on the website. The issue I am working with is how can I setup my MATLAB project such that it can run on an environment where MATLAB is not installed. I was hoping to place my project in a server and host it to run the website. This way anyone can access it and use it.
I tried to make a standalone application for the MATLAB process but ran into an error. (The filename specified was not found in the MATLAB Path. Error in => motionTracking.m line 11)
Could someone possibly let me know as to how I can deploy a MATLAB script in an environment that does not have MATLAB installed and allow it to run on a website?

Answers (1)

Kiran Felix Robert
Kiran Felix Robert on 14 Aug 2020
Edited: Kiran Felix Robert on 14 Aug 2020
Hi Sarvath,
It is my understanding that you are attempting to create a standalone executable from the MATLAB script. The specific process is described in the following link.
The error you get while using the MATLAB Compiler is because you have not navigated to the directory in which the file is located, or you have not added all the required folders to path.
There are two possible solutions, you can either navigate to the directory in which the file exists, or you can add all the required directories to path.
The easiest way to do so is, to navigate to the parent directory and in the directory structure (that can be seen in the left-hand side in the default MATAB view) right click on the folder and select,
Add to Path > Selected Folders and Sub-Folders
Hope this helps.
Kiran Felix Robert

Categories

Find more on Image Processing Toolbox 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!