How do I convert a column to numeric?
Show older comments
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 Comments
Rik
on 6 Jun 2018
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
on 6 Jun 2018
Rik
on 6 Jun 2018
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
on 6 Jun 2018
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
on 6 Jun 2018
jakobjakob
on 6 Jun 2018
Stephen23
on 6 Jun 2018
jakobjakob
on 6 Jun 2018
Edited: jakobjakob
on 6 Jun 2018
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!