0

I want to use an exe in matlab in a way that I could also mention input and output path of the input and output files as follows:

file.exe (parameter) (input_file_path) (output_file_path)

The above line shows how I write my command in DOS prompt.

Mushi

1 Answer 1

0

You can use system command to achieve this.

system(['file.exe ' parameter ' ' input_file_path ' ' output_file_path ]);

If arguments are fixed you can simply run

>>!file.exe parameter input_file_path output_file_path
Sign up to request clarification or add additional context in comments.

1 Comment

I found it like this --> system(['file.exe parameter ' input_file_path ' ' output_file_path]);. Anyway, it worked perfectly. Thanks a loads.

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.