How do I name the columns of my table by the names of row 1?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Amy Hughes
am 3 Feb. 2020
Bearbeitet: Amy Hughes
am 3 Feb. 2020
I have inserted a table into matlab using this
pos=readtable("Pos_data.csv")
When I do this in R, the row names in row 1 become the columne names. However, in Matlab it does not do this. Please could you tell me how I name the columns based on the names in row 1 of the table ( as this is where the title of the columns are currently).
Thank-you,
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
the cyclist
am 3 Feb. 2020
It seems that all you need to do is this:
pos=readtable("Pos_data.csv",'ReadVariableNames',true)
1 Kommentar
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!