Change column name based on another vector

Hi,
I have a matrix where I want to change the column name. The first column name should be the first row from other matrix/vector. How can I do that?
So looking at the example with random numbers, the first column in matrix A should have the name 0.5949, second column 0.2622 and so on.
My real data is a very large matrix (8570 x 19000). Each column has its own name comming from a 19000 x 1 vector

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 4월 4일

0 개 추천

댓글 수: 2

Mak
Mak 2020년 4월 4일
Thanks for the fast response. I am working with a very large matrix (8570 x 19000). If I have to do it manually (specify the column names) I will never be done. Each column has its own name, so 19000 names. I am new in Matlab, so I don't know if this is possible?
Mak
Mak 2020년 4월 4일
Hi again,
I am trying to do it in a different way. I start by loading the data from a mat file. Then I put the 2 matrices together, so I have the "name" vector as the first row. But do you know how to tell Matlab that the first row should be column names?

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

카테고리

도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

Mak
2020년 4월 4일

댓글:

Mak
2020년 4월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by