Matlab .exe format

My m file:

x=0:0.01:2*pi; y=sin(x); plot(x,y) 

I want to create this program in .exe format. I want to run this .exe on a computer that does not have matlab.

+4
source share
4 answers

Matlab offers a commercial product for this purpose.

+6
source

As mentioned by Marcelo, there is no free solution for your specific problem.

But for your very simple program, you could, for example, use Python with matplotlib to solve the problem and generate an executable (you will also have to include some python libraries). It will be absolutely sufficient and will not be much more difficult to write for your tiny program.

+2
source

The Matlab compiler is included for free in the base Matlab installation, no additional licenses are required.

The deploytool command provides a visual user interface for configuring settings.

 doc deploytool %# Launches help file browser for deploytool. 

Alternatively, you can write a programmatic compilation script using the mcc command.

 doc mcc % #Launch help file browser for mcc compiler. 
+1
source

There is a fully functional option: If you use a GUI file (for example, myExample.fig to place your visual components) and a .m file for placing your code (for example, myExample.m), you can compile it using the Matlab Compiler with one line :

 mcc -m myExample.m myExample.fig 

A.exe is generated. You can use this .exe on any Windows computer without having to have a Matlab license (you only need to install MCRInstaller - you can get it from your Matlab installation directory: [MATLAB] \ R2010a \ toolbox \ compiler \ deploy \ win32 \ - which is free for distribution and does not require a license).

http://www.mathworks.es/help/toolbox/compiler/mcc.html

0
source

Source: https://habr.com/ru/post/1307914/


All Articles