Export data from Matlab to python

262 次查看(过去 30 天)
Stefan Lang
Stefan Lang 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 CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by