Path: news.mathworks.com!not-for-mail
From: "Bill" <john.doe.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Matlab Compiler and paths
Date: Sun, 1 Mar 2009 18:40:19 +0000 (UTC)
Organization: Draper Laboratory
Lines: 22
Message-ID: <goekqj$m4m$1@fred.mathworks.com>
Reply-To: "Bill" <john.doe.nospam@mathworks.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235932819 22678 172.30.248.37 (1 Mar 2009 18:40:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Mar 2009 18:40:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 895435
Xref: news.mathworks.com comp.soft-sys.matlab:521707


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?

TIA,

Bill