| MATLAB Central > MATLAB Newsreader > How to run .exe file from matlab |
|
|
|
I got a .exe file complied by Fortran. I have to run it thousands of times, each time with different input arguments (which I have to enter manually). I want to do this in matlab automatically. How to call an executable in matlab? How to include the input arguments (for the Fortran exe file) from matlab? I know it is very simple in IDL, since someone just showed me. But I would like to do this in matlab. |
|
"Zhang" |
|
This does not solve my problem. When the executable file runs, it needs input data and parameters (which I have to enter manually in matlab command window now). I want this to be done automatically, for example, making 'system' or 'unix' take some input arguments. How to do that? I cannot find any help from matlab help files. Thanks. |
|
Subject: How to run .exe file from matlab From: Walter Roberson Date: 22 Dec, 2008 17:11:22 Message: 4 of 19 |
|
Zhang wrote: |
|
This works for me! Thank you very much, Walter. |
|
Subject: How to run .exe file from matlab From: Thanh Chung Date: 19 Dec, 2009 15:52:03 Message: 6 of 19 |
|
There is a simple way to solve this issue: |
|
Subject: How to run .exe file from matlab From: Ali Culp Date: 10 May, 2010 17:45:14 Message: 7 of 19 |
|
I'm trying to do a really similar thing and am still having trouble! |
|
Subject: How to run .exe file from matlab From: Walter Roberson Date: 10 May, 2010 19:05:38 Message: 8 of 19 |
|
Ali Culp wrote: |
|
Subject: How to run .exe file from matlab From: Rops ropss Date: 25 May, 2010 13:55:08 Message: 9 of 19 |
|
What if I already have a file with a specified format(.dat in my case), that the executable needs to run? How to do this then? |
|
Subject: How to run .exe file from matlab From: Walter Roberson Date: 25 May, 2010 14:33:53 Message: 10 of 19 |
|
Rops ropss wrote: |
|
Subject: How to run .exe file from matlab From: Rops ropss Date: 26 May, 2010 13:46:05 Message: 11 of 19 |
|
Thanks a lot..... |
|
Hi walter, |
|
Subject: How to run .exe file from matlab From: Steven_Lord Date: 3 Jan, 2013 14:38:51 Message: 13 of 19 |
|
|
|
I have similar problem. I have a simple fortran code (test.exe) which takes exponential of a number. I want to run this code several times from matlab as follows: open an input.dat file, write a number into it, call test.exe and then write the output to output.dat file. |
|
I have similar problem. I have a simple fortran code (test.exe) which takes exponential of a number. I want to run this code several times from matlab as follows: open an input.dat file, write a number into it, call test.exe and then write the output to output.dat file. |
|
Subject: How to run .exe file from matlab From: Steven_Lord Date: 10 Jan, 2013 14:18:34 Message: 16 of 19 |
|
|
|
Subject: How to run .exe file from matlab From: Engin Uzunel Date: 10 Jan, 2013 15:49:08 Message: 17 of 19 |
|
What I mean by "does not work" is that |
|
Subject: How to run .exe file from matlab From: Engin Uzunel Date: 11 Jan, 2013 08:04:09 Message: 18 of 19 |
|
Even the exe of a simple ''hello world'' fortran code does not work using the matlab ''system'' command on a 64 bit machine. |
|
Subject: How to run .exe file from matlab From: Steven_Lord Date: 11 Jan, 2013 15:03:08 Message: 19 of 19 |
|
|
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| matlab system func... | E U | 9 Jan, 2013 23:14:16 |
| callling from matl... | E U | 9 Jan, 2013 23:14:16 |
| executable fortran | E U | 9 Jan, 2013 23:14:16 |
| executable | igororlov92 | 5 Sep, 2012 06:38:34 |
| exe | Nikos Makris | 1 Nov, 2011 05:34:31 |
| executable system ... | Zhang | 22 Dec, 2008 11:20:20 |
| unix | us | 20 Dec, 2008 00:50:05 |
| reference | us | 20 Dec, 2008 00:50:05 |
| system | us | 20 Dec, 2008 00:50:05 |
| executable | Zhang | 20 Dec, 2008 00:35:04 |
