How to run a GUI as an application

Hi all, i have a GUI which does some instructions for a university project, i should give a lot of files and .m functions to my professor, and i would like at least to "pack" the execution in a single icon or file, which starts the GUI. What can i do? I saw the deploytool which should create an exe, but because i must compile a mex file in one of the instructions (which at the beginning is an empty file and will be compiled later), the deploy tool gives an error and doesn't create the exe; so i think i should go for another solution. I also can't create the batch file, because it will run on a different PC with different directories. Thanks in advance for help!

Answers (1)

I use a third party installer because deploytool does not let you specify where files go. If you don't want to do that, then just give him the mex file, already compiled, as a separate file and tell him where to put it.

5 Comments

Sorry i didn't explain correctly; the mex file must be compiled every time because the GUI operates on a set of images, using a filter whose parameters can be changed (and so it must run and re-compile every time), so i can't compile it before.
I guess your professor will have to buy the compiler then, or else figure out a way to make the mex more general so it can accept and handle different parameters rather than being hard coded in.
Ok so i use a filter in this application (Frangi filter on file exchange) which uses an empty mex file that must be compiled every time i use the filter, change the parameters and so on; if i give all the files to deploytool, it gives me an error saying that "eig3volume.mex64" is an empty file (this is the mex to be compiled every time i filter the images. What should i do to make it compile the exe?
I just can't understand why your mex file is not able to handle input parameters and needs to be recompiled. It should be able to handle different parameters without being recompiled. Please explain why it needs recompilation. I know you need to recompile since the File Exchange doesn't permit mex files to be uploaded, but once you've done that, you can ship the compiled mex file to your professor and your professor should not have to recompile it again. Or call the compiler help line at the Mathworks.
it's in the filter implementation, when i recall it, it just start compiling the mex file, and when it's done it continues with his MATLAB instructions, but first it goes with the compilation. I don't know in detail how this implementation of Frangi filter works, i just apply it.

Sign in to comment.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Asked:

on 2 Apr 2016

Community Treasure Hunt

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

Start Hunting!