1

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 ?

2
  • 2
    What did you enter into the terminal to run the exe on linux? Commented Oct 22, 2013 at 12:37
  • @sebastian: I dout there is a `C:` on a linux OS, at least this way. Commented Oct 22, 2013 at 14:11

1 Answer 1

3

Try to run

[status,cmdout] = system('abc.exe p.txt q.txt r.txt z.txt')

and tell us the resulting values of both status and cmdout. Maybe cmdout will give some useful error message. Some possible things that could go wrong is that abc.exe is not in the path, or that some environmental parameter is not set.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.