How do I create column names?
이전 댓글 표시
I have a 1x49 cell array (header_file) that contains the column names of a 1998x49 double data array (data_file). How do I make the 49 values in the header_file be the 49 column names in the data_file?
채택된 답변
추가 답변 (1개)
Walter Roberson
2013년 8월 1일
Numeric arrays cannot have non-numeric headers.
The closest you can get is to create a cell array:
newcell = [header_file; num2cell(data_file)];
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!