|
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
|