Borrar filtros
Borrar filtros

Exporting a 3D array to python

19 visualizaciones (últimos 30 días)
Shachar Givon
Shachar Givon el 6 de Jun. de 2021
Respondida: SALAH ALRABEEI el 6 de Jun. de 2021
I have a 3-D array (of 1 and -1) saved as a .mat file that I need to be available for python users.
I am very new to the python world.
How can I both save the array as something that can be uploaded to python and how do I do the uploading?
It is ofcourse important that it keeps its 3D structure.
Thanks

Respuestas (1)

SALAH ALRABEEI
SALAH ALRABEEI el 6 de Jun. de 2021
Ths simplest way is to export it as .dat file where python can read it too.
% example
x = rand(100)
save file.dat x -ascii

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by