Path: news.mathworks.com!not-for-mail
From: "Ashish Uthama" <first.last@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab Compiler and paths
Date: Mon, 02 Mar 2009 09:21:07 -0500
Organization: TMW
Lines: 37
Message-ID: <op.up54thooa5ziv5@uthamaa.dhcp.mathworks.com>
References: <goekqj$m4m$1@fred.mathworks.com>
NNTP-Posting-Host: uthamaa.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1236003667 14185 172.31.57.126 (2 Mar 2009 14:21:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Mar 2009 14:21:07 +0000 (UTC)
User-Agent: Opera Mail/9.63 (Win32)
Xref: news.mathworks.com comp.soft-sys.matlab:521874


On Sun, 01 Mar 2009 13:40:19 -0500, Bill <john.doe.nospam@mathworks.com>  
wrote:

> 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


Have you included the file ('filename' in exist(filename)) in the project?