Converting character matrix to number
조회 수: 16 (최근 30일)
이전 댓글 표시
I have a character matrix A that I want to convert to numbers B, but it doesn't work with str2num. Any tips? I tried B = str2num(A) but gives B = [].
A = ['02';'06';'07'];
B = [2;6;7];
댓글 수: 2
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!