Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!z4g2000prh.googlegroups.com!not-for-mail
From: TideMan <mulgor@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How does the MATLAB Compiler deal with .mat files?
Date: Tue, 28 Jul 2009 19:10:03 -0700 (PDT)
Organization: http://groups.google.com
Lines: 35
Message-ID: <edc8d4a8-ba9a-404d-a8e2-ea8d500f9e2b@z4g2000prh.googlegroups.com>
References: <h23fod$8p2$1@fred.mathworks.com> <h23k1b$7rk$1@fred.mathworks.com> 
	<h4lmjt$4mh$1@fred.mathworks.com> <h4m3vd$jla$1@fred.mathworks.com> 
	<h4o4na$qbr$1@fred.mathworks.com>
NNTP-Posting-Host: 202.78.152.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1248833404 9227 127.0.0.1 (29 Jul 2009 02:10:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 29 Jul 2009 02:10:04 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: z4g2000prh.googlegroups.com; posting-host=202.78.152.105; 
	posting-account=qPexFwkAAABOl8VUndE6Jm-9Z5z_fSpR
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bc1
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.12) 
	Gecko/2009070611 Firefox/3.0.12,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:559157


On Jul 29, 12:22 pm, "William" <w_kin...@yahoo.com> wrote:
> OK...that makes no sense to me either.  I will have to tell the installer where to put the .mat file.  Correct?  Therefore, when I use the mcc command to create the executable, I should then be able to put the required .mat file somewhere manually without using the installer.  Correct?  Where do I put it?  In which folder?  
>
> I have not found the appropriate location and cannot find documentation in MATLAB for dealing with .mat files in executables.  NSIS, as far as I know, isn't designed to work specifically with MATLAB files.  Therefore, it won't know what to do with the file I am having trouble with.  
>
> I appreciate your help, but pointing me in the direction of random programs without specific instructions on where to put things is not helping me solve my original problem...getting my compiled application to work.  The .mat file in my program is a file that is used every time my program launches and every time it closes.  It holds the configuration values that are saved upon closing and loaded upon launching.  My application looks for that file in a specific place.  However, no matter where I put it, the application doesn't recognize it once compiled.  Is there something I'm missing?
>
> Thanks,
> Billy

Yes, you are missing something: the sense to listen to the good advice
that Bruno has given you.

When you run your program on your own machine, where does the .mat
file sit?
Then that is exactly where it should sit when you run it on your
users' machines, be that the current directory or somewhere else.
I would write a ReadMe to explain how the program must be installed,
then zip it up along with the .exe and .mat files using WinRAR or
similar.  Most users can handle that.