Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How does the MATLAB Compiler deal with .mat files?
Date: Fri, 26 Jun 2009 23:02:03 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 12
Message-ID: <h23k1b$7rk$1@fred.mathworks.com>
References: <h23fod$8p2$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246057323 8052 172.30.248.35 (26 Jun 2009 23:02:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 26 Jun 2009 23:02:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:551018


"William" <w_king10@yahoo.com> wrote in message <h23fod$8p2$1@fred.mathworks.com>...
> I am trying to create an executable file using the MATLAB compiler.  I am creating a GUI that uses a .mat file for loading data every time it is opened, but the .mat file is not being integrated into the executable files.  Without it, my GUI throws an error.  
> 
> The command for compiling MATLAB files into an executable is:
> 
> mcc -m stuff.m moreStuff.m evenMoreStuff.m
> 
> I have tried to add the .mat file to the list (after -m), but it doesn't seem to work properly.  how does the MATLAB compiler deal with .mat files and have can I add them for the .exe to use?

Why you should add them in the EXE file? Any data files should keep separately. They will be used as normal.

Bruno