Add header to array

조회 수: 13 (최근 30일)
Iugo
Iugo 2021년 3월 18일
댓글: Iugo 2021년 3월 18일
Hello everyone!
How can I add a header to a certain array? I was able to do it for a table but I really want to do it in an array because I will use that in python and python does not read tables from matlab...
Thanks in advance!

답변 (1개)

the cyclist
the cyclist 2021년 3월 18일
Disclaimer: I have not tried to do this myself.
I suggest taking a look at this documentation about mapping MATLAB data types to Python.
As you may or may not know, numeric MATLAB arrays do not store text data, so you cannot have a header on them. Cell arrays will store a mixture of text and numeric, but it seems from that documentation that only one-dimensional cell vectors can be mapped directly.
So, you may need to pass the numeric data and the header data separately.
But, as I said, I am not experienced at this, so there may be a good way that I do not know about.
  댓글 수: 1
Iugo
Iugo 2021년 3월 18일
Thanks for your help @the cyclist!! I will see that documentation and take into account your advice!

댓글을 달려면 로그인하십시오.

카테고리

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