I ues mcc -W python:myAdd -T link:lib myAdd.m to create a python package.How do I call it in python?

3 ビュー (過去 30 日間)
xv cheng
xv cheng 2018 年 6 月 27 日
回答済み: Wentao Du 2018 年 7 月 2 日
matlab code : function [ x ] = myAdd(a,b) x=a+b; end
In matlab command window: mcc -W python:myAdd -T link:lib myAdd.m Then I got a setup.py and a package:__init__ , myAdd.ctf
I installed the package using setup.py in cmd. But I don't know how to call the function in python.
Additionally,is there any other method to call matlab Dll in python? Many thanks!

回答 (1 件)

Wentao Du
Wentao Du 2018 年 7 月 2 日

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by