From: Freek on
I am trying to compile my m-file to a stand-alone application for the first time, so I might be doing several things wrong. I succeeded in creating an exe-file, but it doesn't seem to do anything. The m-file uses xlsread to read from an input Excel-file, does calculations, then writes output to another Excel-file using xlswrite1.

To create an exe-file, I installed MATLAB Component Runtime and typed 'mcc -m file.m'. Now I've got the exe-file, but the output isn't written to the Excel-file when I run it. There are no error messages. Should I be installing or doing something else?

Or is the problem that I use xlsread and xlswrite1 in the m-file (resulting in compiling problems)? If so, how can I resolve this?

Thanks in advance, greetings,

Freek.
From: Freek on
Anyone want to help me out?

Freek.
From: Walter Roberson on
Freek wrote:
> Anyone want to help me out?

It would have helped if you had described the compilation problems you
encountered and how you solved them.

Did you try using the dependency walker? http://www.dependencywalker.com/
From: Raj Kamal on
"Freek " <f_van_der_steen(a)hotmail.com> wrote in message <i0tm23$gq8$1(a)fred.mathworks.com>...
> I am trying to compile my m-file to a stand-alone application for the first time, so I might be doing several things wrong. I succeeded in creating an exe-file, but it doesn't seem to do anything. The m-file uses xlsread to read from an input Excel-file, does calculations, then writes output to another Excel-file using xlswrite1.
>
> To create an exe-file, I installed MATLAB Component Runtime and typed 'mcc -m file.m'. Now I've got the exe-file, but the output isn't written to the Excel-file when I run it. There are no error messages. Should I be installing or doing something else?
>
> Or is the problem that I use xlsread and xlswrite1 in the m-file (resulting in compiling problems)? If so, how can I resolve this?
>
> Thanks in advance, greetings,
>
> Freek.

if its not working with excel files try using txt notepad and use fseries options to read files.It works so with me.
From: Freek on
Walter Roberson <roberson(a)hushmail.com> wrote in message <i12rr8$hma$2(a)canopus.cc.umanitoba.ca>...
> Freek wrote:
> > Anyone want to help me out?
>
> It would have helped if you had described the compilation problems you
> encountered and how you solved them.
>
> Did you try using the dependency walker? http://www.dependencywalker.com/

Thanks Walter. During the compilation there where no problems, no error messages. The only problem is that the resulting exe-file does not seem to write the output to the Excel-file (which is why I'm doubting if the xlswrite1 function is compiled the right way), which the original m-file does without any problems.

I now have used dependency walker and it gives some errors, but I don't know how to read/interpret those errors.

@Raj: thanks, but the use of Excel-files is necessary, since I want to send the Excel files (along with the exe-file) to someone else who will be working with and adjusting those files continuously.