Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jul 27, 2004
Messages
2
Location
DE
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........
 
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

Back
Top