naming your rows and column for a matrix

199 Ansichten (letzte 30 Tage)
Prince Oware
Prince Oware am 20 Okt. 2019
Kommentiert: Zari Zari am 10 Okt. 2022
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

Antworten (1)

Star Strider
Star Strider am 20 Okt. 2019
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 Kommentar
Zari Zari
Zari Zari am 10 Okt. 2022
Thank you so much, I was looking for something like this. Thank you for answering to the original

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by