Export data from Matlab to python

조회 수: 263 (최근 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 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