Export data from Matlab to python

262 Ansichten (letzte 30 Tage)
Stefan Lang
Stefan Lang am 2 Nov. 2020
Bearbeitet: Ameer Hamza am 2 Nov. 2020
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?

Antworten (1)

Ameer Hamza
Ameer Hamza am 2 Nov. 2020
Bearbeitet: Ameer Hamza am 2 Nov. 2020
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.

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by