Borrar filtros
Borrar filtros

Add row numbers to side of table in MATLAB

15 visualizaciones (últimos 30 días)
Logan Callahan
Logan Callahan el 19 de Abr. de 2022
Comentada: Logan Callahan el 19 de Abr. de 2022
This is my code:
T = table(Name,Team,DVOA);
T.Name = categorical(T.Name);
T.Team = categorical(T.Team)
This is the output:
I need to add row numbers to the left-hand side of the table. Please help.
The result should look like this:

Respuestas (1)

Chris
Chris el 19 de Abr. de 2022
Editada: Chris el 19 de Abr. de 2022
rownums = 1:size(T,1);
T.Properties.RowNames = string(rownums);

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by