Thread Subject: How to get output from a exe application that was created from deploytool command

Subject: How to get output from a exe application that was created from deploytool command

From: Niko

Date: 26 Jan, 2012 23:00:11

Message: 1 of 3

Hi,

I have a MATLAB (m-file) which produces Excel files. I was wondering how I can access the excel files once I use deploytool command to turn the m-file into an application.

Where would a file that normally goes to an output folder be with the package after I run the .exe?

Thanks,

Subject: How to get output from a exe application that was created from

From: ImageAnalyst

Date: 26 Jan, 2012 23:21:24

Message: 2 of 3

On Jan 26, 3:00 pm, "Niko " <n...@clicslab.org> wrote:
> Hi,
>
> I have a MATLAB (m-file) which produces Excel files. I was wondering how I can access the excel files once I use deploytool command to turn the m-file into an application.
>
> Where would a file that normally goes to an output folder be with the package after I run the .exe?
>
> Thanks,

-----------------------------------------------------------------------------------------------------
Niko:
I would use Excel - that seems like the natural choice to access Excel
files.

They will go into the folder that you told it to in your program. You
of course specified the folder, didn't you? You didn't just put them
into the "current folder" did you? That is very bad practice for a
deployed executable since it won't go where you think it will (long
story). You must specify the folder, either hard coding it or asking
the user to specify it with uigetdir(), and then use fullfile() to
build your complete Excel workbook name (folder plus base file name).
DON'T just get pwd and then create a folder (say "ExcelResults") off
of it (the pwd) or you'll have trouble finding it since the current
folder for a deployed executable is NOT the folder where the
executable is living.
ImageAnalyst

Subject: How to get output from a exe application that was created from

From: Niko

Date: 27 Jan, 2012 23:01:09

Message: 3 of 3

Thanks this helps

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com