필터 지우기
필터 지우기

Exporting a 3D array to python

조회 수: 19 (최근 30일)
Shachar Givon
Shachar Givon 2021년 6월 6일
답변: SALAH ALRABEEI 2021년 6월 6일
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

답변 (1개)

SALAH ALRABEEI
SALAH ALRABEEI 2021년 6월 6일
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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by