- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Friends:
I compile some program by MatLab. Now I have to use fortran to call the program edited by Matlab. Could you tell me how to do it?
Thank you very much.
David
I compile some program by MatLab. Now I have to use fortran to call the program edited by Matlab. Could you tell me how to do it?
Thank you very much.
David
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the system command from the ifport module.
subroutine CreateTecMacro_(a_sDataFile, a_Table)
use ifport
! Create your command string
! ....
! ....
call system(sCmd)
end subroutine
Doing it that way you have no chance to communicate with your program so it mus support a batch mode.
Ingo
subroutine CreateTecMacro_(a_sDataFile, a_Table)
use ifport
! Create your command string
! ....
! ....
call system(sCmd)
end subroutine
Doing it that way you have no chance to communicate with your program so it mus support a batch mode.
Ingo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Compaq Fortran, substitute DFPORT for IFPORT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much. I tried to find IFPORT or DFPORT in Compaq Fortran Mannual, but I cann't. Could you tell where I find such internal variable definition and application?
Thank you again.
Thank you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not a variable - it's a module. You add the line:
use dfport
to your program immediately after the PROGRAM, SUBROUTINE or FUNCTION statement. That makes the definition of the SYSTEM routine available to you. Look up SYSTEM in the on-disk documentation index.
use dfport
to your program immediately after the PROGRAM, SUBROUTINE or FUNCTION statement. That makes the definition of the SYSTEM routine available to you. Look up SYSTEM in the on-disk documentation index.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page