how to call external program within fortran code?
how to call external program within fortran code?
(OP)
hello
I want to call matlab program within my fortran code. I have google about this but can't figure out how should I write the code. for example I just want to run matlab program. is the below code is true?
-------------------------------------
program Console9
implicit none
call SYSTEMQQ("C:\ProgramFiles\MATLAB\R2015b\bin\matlab.exe")
end program Console9
I want to call matlab program within my fortran code. I have google about this but can't figure out how should I write the code. for example I just want to run matlab program. is the below code is true?
-------------------------------------
program Console9
implicit none
call SYSTEMQQ("C:\ProgramFiles\MATLAB\R2015b\bin\matlab.exe")
end program Console9





RE: how to call external program within fortran code?
TTFN
I can do absolutely anything. I'm an expert!
homework forum: //www.engineering.com/AskForum/aff/32.aspx
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers
RE: how to call external program within fortran code?
i don't know what is the problem.
RE: how to call external program within fortran code?
CODE
call SYSTEMQQ("C:\Program Files\MATLAB\R2015b\bin\matlab.exe")CODE
RE: how to call external program within fortran code?
this error is occurred, It is not syntax error. google says that it may because of compiler or OS. My compiler is ifort.exe and OS is win10/64bit.
--------------------------------------------------------
'Console2.exe': Loaded 'C:\Windows\SysWOW64\imagehlp.dll'
'Console2.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
The thread 'Win32 Thread' (0x13f8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1080) has exited with code 0 (0x0).
The program '[4488] Console2.exe: Native' has exited with code 0 (0x0).
---------------------------------------------------------
RE: how to call external program within fortran code?
It looks like you call matlab through COM. I think matlab.exe is just a front end which launches something else.
In most cases, the fortran programs assume that Matlab is already started. They don't try to launch matlab first. Check the process memory if you are successful - make sure your Fortran program has not grown excessively large from starting matlab.
RE: how to call external program within fortran code?
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/