mat2np : turn MATLAB array into a Python Numpy object

Versione 1.0.0.0 (2,2 KB) da CY Y
Saves a 1-D or 2-D MATLAB array into pickled Numpy array
2,6K download
Aggiornato 17 mag 2022

Saves 1-D or 2-D MATLAB array into a pickled Numpy array. (Currently only tested in Python 3). Supported datatypes : 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'float64'.
Example usage :

in MATLAB :

a = [ 1.2, 3.5, 4.3 ];
mat2np(a, 'a.pkl', 'float64')

then in Python :

import pickle
with open('a.pkl', 'rb') as fin :
a = pickle.load(fin)

Cita come

CY Y (2024). mat2np : turn MATLAB array into a Python Numpy object (https://github.com/joe-of-all-trades/mat2np), GitHub. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Call Python from MATLAB in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate

Versione Pubblicato Note della release
1.0.0.0

added support for unsigned integer

Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.