Read containers.map object in Python

조회 수: 11 (최근 30일)
Nishanth Rao
Nishanth Rao 2021년 3월 24일
답변: Puru Kathuria 2021년 5월 6일
Greetings.
I am trying to store a containers.map object in a .mat file, and trying to load in a python script. But when I print the loaded variable (I'm using scipy for this by the way) I get something totally different, like reported here. Can anyone help me with this? If this is a scipy issue, I'll ask in the other community, but for the time being, are there any other alternatives for this?
I am using MATLAB R2020b.
Thanks in advance.

답변 (1개)

Puru Kathuria
Puru Kathuria 2021년 5월 6일
Hi,
I understand you are not able to read mat file data in python using scipy.io api. And that mat file contains data in the form of containers.Map data.
You might want to choose other file formats that are language independent. Example: csv file, json, xml or any other serialization format.
This might solve your issue and let you bridge the road between exporting data from MATLAB and importing it into python.

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by