Path: news.mathworks.com!not-for-mail
From: "Ashish Uthama" <first.last@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Using Compiled XLS File
Date: Mon, 27 Oct 2008 09:07:19 -0400
Organization: TMW
Lines: 25
Message-ID: <op.ujopeh2da5ziv5@uthamaa.dhcp.mathworks.com>
References: <ge37ma$7rk$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 1225112839 3602 172.31.57.126 (27 Oct 2008 13:07:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Oct 2008 13:07:19 +0000 (UTC)
User-Agent: Opera Mail/9.60 (Win32)
Xref: news.mathworks.com comp.soft-sys.matlab:497415


How are you specifying the template file path to the COPYFILE function?

I believe you should just addresss it by name since all included files in  
the projec will be on the MATLAB path.


On Sun, 26 Oct 2008 22:06:02 -0400, Brian  <ceo21mil@hotmail.com> wrote:

> I have a MS Excel file that serves as a template for data reporting.
>
> In my m-file, I create a new Excel file by copying the template with the  
> COPYFILE command.  The name of the new file varies by input.  Following  
> analysis, fields of the new file are populated with results.  The  
> process repeats several times.
>
> Everything works beautifully from the command window within MATLAB.
>
> When I compile my code to create a stand-alone application, I always  
> include the template source file  along with the m-file and it compiles  
> without error.  However, upon executing the stand-alone application, I  
> receive an error at the COPYFILE command: it can not find the source  
> file.
>
> Please let me know if you have any suggestions to resolving this issue.