How to put sequence number in the table form?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kasih Ditaningtyas Sari Pratiwi
el 23 de Oct. de 2017
Comentada: Kasih Ditaningtyas Sari Pratiwi
el 24 de Oct. de 2017
Hi, I am new in matlab and have a problem in putting sequence number on the table. Could you please help me? so here is my code:
x=height(myfile) %to know the number of rows in the table
myfile{:,16}=[1:x] %to fill down column 16 with sequence number until the last row
However, it did not work well :( Thank you very much for your help.
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de Oct. de 2017
Editada: Walter Roberson
el 23 de Oct. de 2017
myfile{:,16} = (1:x).';
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!