从Python运行M文件 [英] Running m-files from Python

查看:685
本文介绍了从Python运行M文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pymat似乎不适用于当前版本的matlab,所以我想知道那里是否还有另一个等效项(我还没有找到).要执行的要点是从python(2.6)运行m文件. (以及scipy之类的替代方法不适合,因为我认为它们无法运行m文件中的所有内容).

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).

提前谢谢!

推荐答案

在Windows上,您可以这样做:

On Windows you do this:

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

这篇关于从Python运行M文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆