Cenoc
Cenoc

Reputation: 11662

Running m-files from Python

pymat doesnt seem to work with current versions of matlab, so I was wondering if there is another equivalent out there (I havent been able to find one). The gist of what would be desirable is running an m-file from python (2.6). (and alternatives such as scipy dont fit since I dont think they can run everything from the m-file).

Thanks in advance!

Upvotes: 2

Views: 5916

Answers (4)

user3785802
user3785802

Reputation:

I think that the most comprehensive Python packages to call MATLAB functions are:

Disclaimer: I'm the developer of matlab_wrapper.

Upvotes: 0

nitin
nitin

Reputation: 7358

On Windows you do this:

>>> import win32com.client
>>> h = win32com.client.Dispatch('matlab.application')

Upvotes: 1

jb.
jb.

Reputation: 23955

You can always start matlab as separate subprocess and collect results via std.out/files. (see subprocess package).

Upvotes: 2

tom10
tom10

Reputation: 69172

There's mlabwrap. Have you looked at this? I used this several years ago, but not recently.

Upvotes: 2

Related Questions