How to number rows of a table by group
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Thimo Marcin
am 17 Okt. 2018
Kommentiert: jonas
am 17 Okt. 2018
I have a table with 2-3 rows per subject(PATID). Now, I would like to add a column which indicate if it is the first, second or third training of a patient (as shown in the figure). There must be a simple way, but I cant figure it out.
Thanks for your help
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198101/image.png)
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!