Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab compiler

Status
Not open for further replies.

mbazaraa

Computer
Jul 27, 2004
2
I am having a problem with compiling a m file that uses the load(filename) function(that reads input from a .txt file) into a stand alone program.
it gives an error while excuting the .exe program which says:
Exception ! File: handler.cpp, line 73
can't open File c:\thru.txt
and it points an error in the line of the .m file which contains the load function.
I am using Matlab 6.5(release 13),visual studio.Net(VC7),and matlab compiler.
So if anybody could help please do so,i will be very greatfull........
 
Replies continue below

Recommended for you

The Compiler documentation declares that you cannot compile
"M-files that load text files, for example:
[tt] load -ascii sampling1[/tt]"

However, you can use the [tt]fopen[/tt] and [tt]fread[/tt] functions to read the contents of the file. These functions can be compiled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor