Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how can run .exe file from matlab?

Status
Not open for further replies.

malkomx

Newbie level 6
Joined
Apr 7, 2008
Messages
14
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,283
Location
Canada
Activity points
1,374
matlab run exe

Hi everybody
I have a problem in MATLAB, I wrote Fortran code and then I compiled it in .exe file. No I want optimize in it. I try to write m file which put some data in text file and then run .exe file and after that read output of data.

a=20;
a=30;
fid=fopen('D:\input.txt','w');
fprintf(fid,'%d %d %d\n',a,b);
fclose(fid);

winopen('D:\file.exe');

load D:\output.txt;

I have a problem in running exe file because with winopen command, it is not stay for finishing exe file and also I confused with system command, I was wondering if you could help me.
 

how to run matlab

I solved it.
Thanks for your attention!:idea::!:
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top