mat2np : turn MATLAB array into a Python Numpy object
버전 1.0.0.0 (2.14 KB) 작성자:
CY Y
Saves a 1-D or 2-D MATLAB array into pickled Numpy array
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 (2022).mat2np : turn MATLAB array into a Python Numpy object(https://github.com/joe-of-all-trades/mat2np), GitHub. 검색됨.
MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
이 GitHub 애드온의 문제를 보거나 보고하려면GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면GitHub 리포지토리로 가십시오.