I am trying to call Matlab functions from within Fortran - mainly to use Matlab plotting facilities, but in principle I would like to use some of their numerics as well.
Looking through the web the only somewhat promising way I found was
ok=system("matlab /Automation commandText") or ok=system("matlab commandText")
where commandText is the command sent to matlab which may include setting variables, calling functions, etc. The /Automation just controls the mode Matlab starts in.
While this works in principle, it opens a new Matlab window/memory-space everytime, which isnt helpful when I try to do a sequence of commands. Is there any way to force the execution in the already-opened window (without using matlab scripts)?
Otherwise, any other approaches for accessing Matlab from Fortran that anybody was able to implement? Thanks in advance!
