Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab Compiler and paths
Date: Sun, 1 Mar 2009 20:06:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 29
Message-ID: <goepr9$ovq$1@fred.mathworks.com>
References: <goekqj$m4m$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 1235937961 25594 172.30.248.35 (1 Mar 2009 20:06:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Mar 2009 20:06:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:521714


"Bill" <john.doe.nospam@mathworks.com> wrote in message <goekqj$m4m$1@fred.mathworks.com>...
> All,
> 
> After some success as a "getting started" person with the Matlab Compiler I have run into a snag when trying a "real" project:
> 
> 1. I did need to set some path values to get the top level script to execute properly, but indeed it does.
> 
> 2. I have built and packaged the project many times now and it "almost" runs.
> 
> 3. The problem is that an "exist(filename)" statement does not find the file when I run the ".exe" version of the project.
> 
> 4. The file does exist and, as an experiment, I added some code to prepend the path to the filename, and sure enough the ".exe" version did find the file when doing the "exist"
> 
> 5. Unfortunatley, there are several areas where the "m" code assumes that the Matlab path structure will supply the path to individual file names.
> 
> 
> It is almost as though the whole set of Matlab paths does not get included with the MCR.
> 
> Any ideas?

I have read through your five comments and I do quite understand what in there!

Just one commen that might helpt: the default path when running an application in exe is the usually 2 level down from the location of the exe file. The folder is created to receive extracted encoded mfiles from the ctf.

When this is clear, you will be ready to fix any path issues after compilation.

It is also safer to use EXIST with second argument rather than single input.

Bruno