From: Robin on
Dear Matlab users

I have an Access database. I have written a main GUI in matlab that opens other GUI menus that import data and analyse the data from the database. To the GUI's I have also written some function files. In all I have maybe 15 function files and 10 GUI function files in matlab. I want to create an exe-file of my GUI's with function files. Is it possible to make an exe-file from that many GUI and function files? The only toolbox I have used is the database toolbox and also some java code.
I have read a few articles about the matlab compiler and it seems like I have to write something like this in the command window:

mcc -B sgl FUN1

Where FUN1 is the GUI function file, but in my situation I have a main GUI with 25 other GUI and function files that also need to be compiled to an exe file. How do I do that?

I am open for other suggestions how I can make an exe file that users without matlab can run.

/Robin
From: Walter Roberson on
Robin wrote:
> Dear Matlab users
>
> I have an Access database. I have written a main GUI in matlab that
> opens other GUI menus that import data and analyse the data from the
> database. To the GUI's I have also written some function files. In all I
> have maybe 15 function files and 10 GUI function files in matlab. I want
> to create an exe-file of my GUI's with function files. Is it possible to
> make an exe-file from that many GUI and function files? The only toolbox
> I have used is the database toolbox and also some java code.

The database toolbox GUIs cannot be compiled, and querybuilder cannot be
compiled, but all command line functionality in the database toolbox can
be compiled.

> I have read
> a few articles about the matlab compiler and it seems like I have to
> write something like this in the command window:
>
> mcc -B sgl FUN1
>
> Where FUN1 is the GUI function file, but in my situation I have a main
> GUI with 25 other GUI and function files that also need to be compiled
> to an exe file. How do I do that?

mcc will analyze the file you name and will automatically find as many
function dependencies as possible and will include the relevant files
for them. However, if you used GUIDE then you probably have some
callbacks that are coded as quoted strings rather than through calls or
function handles. If so, then you will have to give hints to mcc. See

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/function.html
From: Robin on
Walter Roberson <roberson(a)hushmail.com> wrote in message <M61_n.12214$3%3.5999(a)newsfe23.iad>...
> Robin wrote:
> > Dear Matlab users
> >
> > I have an Access database. I have written a main GUI in matlab that
> > opens other GUI menus that import data and analyse the data from the
> > database. To the GUI's I have also written some function files. In all I
> > have maybe 15 function files and 10 GUI function files in matlab. I want
> > to create an exe-file of my GUI's with function files. Is it possible to
> > make an exe-file from that many GUI and function files? The only toolbox
> > I have used is the database toolbox and also some java code.
>
> The database toolbox GUIs cannot be compiled, and querybuilder cannot be
> compiled, but all command line functionality in the database toolbox can
> be compiled.
>
> > I have read
> > a few articles about the matlab compiler and it seems like I have to
> > write something like this in the command window:
> >
> > mcc -B sgl FUN1
> >
> > Where FUN1 is the GUI function file, but in my situation I have a main
> > GUI with 25 other GUI and function files that also need to be compiled
> > to an exe file. How do I do that?
>
> mcc will analyze the file you name and will automatically find as many
> function dependencies as possible and will include the relevant files
> for them. However, if you used GUIDE then you probably have some
> callbacks that are coded as quoted strings rather than through calls or
> function handles. If so, then you will have to give hints to mcc. See
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/function.html

Thanks for your answer Walter

I do not use the database toolbox GUI's like querybuilder in my GUI's. The only functions I use are the exec-,columnnames and maybe also the update function later. As I understand there is no problems with using these functions in my GUI's and I can compile an exe file?
From: us on
"Robin " <robinh887(a)hotmail.com> wrote in message <i1a2rl$acm$1(a)fred.mathworks.com>...
> Dear Matlab users
>
> I have an Access database. I have written a main GUI in matlab that opens other GUI menus that import data and analyse the data from the database. To the GUI's I have also written some function files. In all I have maybe 15 function files and 10 GUI function files in matlab. I want to create an exe-file of my GUI's with function files. Is it possible to make an exe-file from that many GUI and function files? The only toolbox I have used is the database toolbox and also some java code.
> I have read a few articles about the matlab compiler and it seems like I have to write something like this in the command window:
>
> mcc -B sgl FUN1
>
> Where FUN1 is the GUI function file, but in my situation I have a main GUI with 25 other GUI and function files that also need to be compiled to an exe file. How do I do that?
>
> I am open for other suggestions how I can make an exe file that users without matlab can run.
>
> /Robin

a hint:
- you could use this FEX submission to identify the functions your gui uses...

http://www.mathworks.com/matlabcentral/fileexchange/17291

us
From: Walter Roberson on
Robin wrote:

> I do not use the database toolbox GUI's like querybuilder in my GUI's.
> The only functions I use are the exec-,columnnames and maybe also the
> update function later. As I understand there is no problems with using
> these functions in my GUI's and I can compile an exe file?

In theory, anyhow, according to the documentation. I have not tried mcc
myself.