mat2np : turn MATLAB array into a Python Numpy object

バージョン 1.0.0.0 (2.2 KB) 作成者: CY Y
Saves a 1-D or 2-D MATLAB array into pickled Numpy array
ダウンロード: 2.6K
更新 2022/5/17

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)

引用

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

MATLAB リリースの互換性
作成: R2016a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.0.0.0

added support for unsigned integer

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。