How to run an external program
I want to use matlab to run an external program, and let the external program open a .dat file. When I use the command "!canny.exe my.dat", it just open the canny program but does not run the my.dat file. What's wrong?
0
Comments
help system
will tell you how to use it.
the dat file is just in the current directory of matlab, so does the Canny.exe program. The command just opened the program, but failed to let the program open the dat file.
The first: !CANNY.exe c:\sample.dat
does not work. just open the Canny.exe program.
The second: system('CANNY.exe')
Sample_MS1.DAT
It displays "Undefined variable "Sample_MS1" or class "Sample_MS1.DAT"
I just tried the 'system('canny.exe sample_ms1.dat')' command.
The program was opened but did not open the dat file.
I'm almost exhausted.