|
From: Erik on 18 Jun 2008 18:23 Hello, I have made a MATLAB program that involves reading data in from a text file. This works fine in MATLAB and even compiles fine (using the mcc command to call the MATLAB Compiler). However, when I run the exe, it gives me the error that it cannot fine the textfile and does not open the program as a result. Do I have to include the file in the mcc command somehow? I assumed if it was in the same directory then it would be found. Thanks, Erik Miehling
From: Ashish Uthama on 19 Jun 2008 13:46 You could try including the file using the '-a' option. If its on the same machine, ensure that you use the fullpath name to the text file when you access it. On Wed, 18 Jun 2008 18:23:02 -0400, Erik <emiehling(a)gmail.com> wrote: > Hello, > > I have made a MATLAB program that involves reading data in > from a text file. This works fine in MATLAB and even > compiles fine (using the mcc command to call the MATLAB > Compiler). However, when I run the exe, it gives me the > error that it cannot fine the textfile and does not open the > program as a result. Do I have to include the file in the > mcc command somehow? I assumed if it was in the same > directory then it would be found. > > Thanks, > Erik Miehling
|
Pages: 1 Prev: engPutVariable error Next: mlfSetErrorHandler() in matlab version 5.3! |