Insert column of strings into numerical matrix
이전 댓글 표시
I have a large matrix 44 x 227 (A) and I I am trying to put a string of dates (B) (1 x 44) into column 139 of matrix A.
I figured out how to get the string to stay in date format, but when I try to insert B into matrix A (:,139) it comes out as NaN.
Any help would be appreciated! Thank you!
답변 (2개)
David Hill
2021년 8월 5일
0 개 추천
Cannot put date strings into a matrix of numbers. Convert date strings to numbers (datenum) and insert. If you want the date strings later just pull from matrix and convert (datestr).
Star Strider
2021년 8월 5일
0 개 추천
.
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!