matlab-0.1.1.1: Matlab bindings and interface

Safe HaskellNone
LanguageHaskell2010

Foreign.Matlab.Runtime

Description

Interface to Matlab runtime libraries. This uses a Matlab shared library which has been built with "mcc -l", and only functions in this library may be called. Multiple libraries may be loaded simultaneously.

Note that you cannot use Foreign.Matlab.Runtime and Foreign.Matlab.Engine in the same program. This seems to be a Matlab limitation.

Synopsis

Documentation

data MLibrary

A Matlab library handle

openMLibrary

Arguments

:: String

The name of the library, which may be a full path to the file, or simply the library name

-> [String]

Arguments with which to initialize the application instance (e.g., "-nojvm")

-> IO MLibrary 

Open and initialize a matlab shared library.

closeMLibrary :: MLibrary -> IO ()

Terminate and close a matlab library.

mLibraryFun :: MLibrary -> String -> IO MFun

Return a Haskell function representing the Matlab function with the given name in the given library

mLibraryCall :: MLibrary -> String -> MFun

Call the Matlab function with the given name in the given library directly