Borrar filtros
Borrar filtros

How to run .exe file with various input files and one output file in MATLAB

2 visualizaciones (últimos 30 días)
naman
naman el 22 de Oct. de 2013
Comentada: dpb el 22 de Oct. de 2013
I have an abc.exe file which uses 3 input text files say p.txt q.txt and r.txt and generate z.txt as an output file.
This is working fine in Linux but how to do it in MATLAB. I ran it with system command as:
status = system('abc.exe p.txt q.txt r.txt z.txt') and
status = system('abc.exe ' 'p.txt ' 'q.txt ' 'r.txt ' 'z.txt')
In both cases, it does not generate z.txt and value of status is not zero.
How to rectify this ?
  1 comentario
dpb
dpb el 22 de Oct. de 2013
Return the optional message for further info on why it failed.
Likely guesses are that the path isn't set in the spawned session so the executable and/or the data files aren't found.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by