Adding a column of character data to a column of numeric data
조회 수: 2 (최근 30일)
이전 댓글 표시
I have two columns of data. One is a column of numeric data, and one is a column of time data. G=numeric data; T=datestr(T, 'HH:MM:SS');
The columns are the same length. I want to take the column of time data and insert it into G. As in have a 600by2 matrix with one column of data is numeric and the other is the time data.
댓글 수: 0
채택된 답변
Walter Roberson
2012년 5월 10일
The only kind of array that can mix numeric data and character data is a cell array. You would get that with
{G, T}
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!