naming your rows and column for a matrix

조회 수: 204 (최근 30일)
Prince Oware
Prince Oware 2019년 10월 20일
댓글: Zari Zari 2022년 10월 10일
How do i name the rows and columns within my 3*6 matrix. Column names are Cw,Ca,Csoil,Csed,Cssed,Cf and row names are Benzene, Lindane, Phenanthrane. The name of the matrix is ConcChem. Thanks in advance

답변 (1개)

Star Strider
Star Strider 2019년 10월 20일
Use array2table to put your matrix in a table (R2013b and later). Name the columns with Specify Variable Names, and the rows with Specify Row Names.
  댓글 수: 1
Zari Zari
Zari Zari 2022년 10월 10일
Thank you so much, I was looking for something like this. Thank you for answering to the original

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by