Effacer les filtres
Effacer les filtres

Save 2D double array to .npy file

124 vues (au cours des 30 derniers jours)
Yong
Yong le 16 Juin 2022
Commenté : Yong le 16 Juin 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!

Réponse acceptée

Eamon Gekakis
Eamon Gekakis le 16 Juin 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.
  1 commentaire
Yong
Yong le 16 Juin 2022
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by