Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to create an EXE file of matlab?

Status
Not open for further replies.

Munib

Advanced Member level 4
Joined
Jun 11, 2004
Messages
114
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,129
setup msvc matlab

that EXE file should run on a PC without matlab installed
 

matlab exe file creation

Hi Munib

Yes You can do it but i have bad news for you.

The math and graphics library is not supported anymore (from version 7).

So what matlab actually do is:
there is static interface for all matlab function to the matlab engine in several DLLs.
So the procedure is not conversion M -> C + static libraries as it was initially intended (in the earlier matlab compiler versions)
In my opinion doing this Matworks sacrifies its opness.

Please read the matlab compiler documentation for details about m -> stand alone application.

Best Regards
dora
 

try "mcc" command on matlab .. have a look at help on this command .. it converts the m-files to C files ..
 

Dear Munib Salam

To create an EXE File from Matlab you have two options.

1. You can use the Matlab's "MCC" command followed by the "Mbuild" to make an exe in matlab 6.5 R13.

2. You can use Install MSVC and use Matlab Visual Addon to convert the matlab files to c/c++ and then make an exe

However if you use MSVC Option u can not convert the script files. You must have your code in a function file.

Hope that helps.
 

salem_sajid said:
Dear Munib Salam

2. You can use Install MSVC and use Matlab Visual Addon to convert the matlab files to c/c++ and then make an exe

However if you use MSVC Option u can not convert the script files. You must have your code in a function file.

Hope that helps.


I have installed MSVC and i can't see the add on ! .. how can i add this feature then ?
 

Dear Omara007 Salam

To confiigure matlab Visual Addon please visit following link

https://www.mathworks.com/access/helpdesk_r13/help/toolbox/compiler/ch04st18.html

or u can go to

https://www.mathworks.it/support/solutions/data/1-18L04.html?solution=1-18L04

as per mathtools documentation

"The add-in for Visual Studio is automatically installed on your system when you run either mbuild -setup or mex -setup and select Microsoft Visual C/C++ version 5 or 6. However, there are several steps you must follow in order to use the add-in:"



Djalli i have not tried it with 6.1 but i would recommend to go through the above given steps and see if it works..

Regards
Ess ESS
 

use the MCC comand and the use an C compliler

Warning #5

Please check your posts, lot of them are useless..
You will be banned soon when continued in this way!!!
eirp
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top