How do I convert a column to numeric?
이전 댓글 표시
See the image

I want to count with the 1st column, but I always get the message "Undefined operator" - "for input arguments or type 'cell'." What can I do about it? I think the column is not numeric, but I am not sure. Who can help me?
댓글 수: 8
Rik
2018년 6월 6일
You should really consider a tutorial in Matlab. If you plan on using Matlab it is really worth it to invest the time in learning how to work with it. Have you tried cell2mat?
jakobjakob
2018년 6월 6일
Rik
2018년 6월 6일
A double is a double precision floating point number: a numeric data type. Did you include the header text in the array you put into cell2mat?
Jan
2018년 6월 6일
I tested that with isstring etc.
We cannot read your mind. What is "etc."? What did you try and what did you get as answer? Do you see that the decimal separator is a comma? Then this cannot be numeric values, because Matlab uses a dot. You did not mention, where you got this screenshot from.
jakobjakob
2018년 6월 6일
jakobjakob
2018년 6월 6일
Stephen23
2018년 6월 6일
jakobjakob
2018년 6월 6일
편집: jakobjakob
2018년 6월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!