How do I name the columns of my table by the names of row 1?
조회 수: 6 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
the cyclist
2020년 2월 3일
It seems that all you need to do is this:
pos=readtable("Pos_data.csv",'ReadVariableNames',true)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!