Save 2D double array to .npy file

137 visualizaciones (últimos 30 días)
Yong
Yong el 16 de Jun. de 2022
Comentada: Yong el 16 de Jun. de 2022
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!

Respuesta aceptada

Eamon Gekakis
Eamon Gekakis el 16 de Jun. de 2022
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.

Más respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by