How to create EXE file from GUI using Matlab coder?

1 次查看(过去 30 天)
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.

回答(1 个)

Adam
Adam 2015-10-9
编辑:Adam 2015-10-9
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.

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by