matlab_wrapper Easy to use MATLAB wrapper for Pyth开源项目

我要开发同款
匿名用户2021年11月23日
23阅读
所属分类、应用工具、科研计算工具
授权协议GPL-3.0 License

作品详情

matlab_wrapper

Withmatlab_wrapperyoucaneasilytalktoMATLABfromyourPythonscriptsandaninteractiveshell.MATLABsessionisstartedinthebackgroundandappearsasaregularPythonobject.

Info:matlab_wrapperismaintained,butnotactivelydeveloped.

Usage

Initialize:

importmatlab_wrappermatlab=matlab_wrapper.MatlabSession()

Lowlevel:

matlab.put('a',12.3)matlab.eval('b=a*2')b=matlab.get('b')

Workspace:

s=matlab.workspace.sin([0.1,0.2,0.3])sorted,idx=matlab.workspace.sort([3,1,2],nout=2)matlab.workspace.a=12.3b=matlab.workspace.b

Moreexamplesareintheexamplesdirectory!

FeaturesAccessMATLABvariablesandfunctionsfromPythonMultiplatform:GNU/Linux,Windows,OSXOn-the-flyconversionbetweenMATLABandNumpydatatypesSupportforMATLAB'snumerical,logical,struct,andcellarraysPurePython,noneedtocompileanything(matlab_wrappertalkstoMATLABenginelibraryusingctypes)

Foracompletelistofchangesincludingnewfeatures,checktheNEWS.rstfile.

Installation

First,makesurethatyouhavethefollowingcomponentsinstalled:

Python2.7MATLAB(variousversions)Numpy

Next,installmatlab_wrapperusingpip(thestandardPythonpackageinstallationtool)fromyourcommandline:

pipinstallmatlab_wrapperContribute

CheckourCONTRIBUTINGguidelines.

IssueTracker:https://github.com/mrkrd/matlab_wrapper/issuesSourceCode:https://github.com/mrkrd/matlab_wrapperSupport

Ifyouarehavingissues,pleaseletmeknowthroughtheissuetracker:https://github.com/mrkrd/matlab_wrapper/issues.Trytoavoidduplicatesbysearchingpreviousissues,checkingFAQ,andCONTRIBUTING.

Acknowledgments

matlab_wrapperwasforkedfrompymatlab.

MATLABisaregisteredtrademarkofTheMathWorks,Inc.

License

TheprojectislicensedundertheGNUGeneralPublicLicensev3orlater(GPLv3+).

查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论