Export data from Matlab to python

262 ビュー (過去 30 日間)
Stefan Lang
Stefan Lang 2020 年 11 月 2 日
編集済み: Ameer Hamza 2020 年 11 月 2 日
I have a logical and a uint16 array, both of the size 5000x2000. How can i get these two into python? E.g. into a numpy array?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 2 日
編集済み: Ameer Hamza 2020 年 11 月 2 日
Save it in a .mat file and load it in python using loadmat from scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html.

カテゴリ

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