How to create EXE file from GUI using Matlab coder?

2 views (last 30 days)
I have built exe file using deploytool in Matlab Compiler and it is working fine. But i need exe file to be totally standalone in which no additional runtime compiler is required. I am trying to build exe file using Matlab Coder but it fails saying "variable arguments" in the main function block of GUI. Tell me any way to build exe from GUI which is free from any runtime compiler (like MCR) or any other software dependency. Thanks.

Answers (1)

Adam
Adam on 9 Oct 2015
Edited: Adam on 9 Oct 2015
Matlab Coder does not support GUI code as far as I am aware. It wouldn't really make sense since the GUI is Matlab-based and C++ code would require additional libraries and whatnot to reproduce a UI anywhere close to Matlab.
I don't really understand what you are trying to do. Matlab Compiler creates a standalone deployable executable, Matlab Coder converts supported code to C++ (and some other languages I forget probably) code for use either externally or via mex within your Matlab application.
The standalone GUI created by Compiler will always need the Matlab Compiler runtime though. If you don't want that then you'll have to write a GUI in some other language to support code ported by Matlab Coder.

Categories

Find more on MATLAB Coder 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!