How to create EXE file from GUI using Matlab coder?

1 vue (au cours des 30 derniers jours)
ceeri
ceeri le 9 Oct 2015
Modifié(e) : Adam le 9 Oct 2015
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.

Réponses (1)

Adam
Adam le 9 Oct 2015
Modifié(e) : Adam le 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.

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by