malkomx
Newbie level 6
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.
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.