필터 지우기
필터 지우기

Save 2D double array to .npy file

조회 수: 124 (최근 30일)
Yong
Yong 2022년 6월 16일
댓글: Yong 2022년 6월 16일
I would lik to know how to save 2D Matlab arrays (129-by-129-by-1, double) to .npy files (Numpy array files). Is there any existing Matlab code to do so?
Many thanks!

채택된 답변

Eamon Gekakis
Eamon Gekakis 2022년 6월 16일
You may not need to save as a .npy file,
you can read a .mat in Python, or you can write to a .csv from Matlab using writematrix or csvwrite.
Hope these options work equivalently.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by