How to change strange cell array within a table to double or categorical array
Show older comments
I have some columns within a table that are labeled as cells that contain both NaN's and "Checked" (a categorical).
Please see the attach screen shot.
How to I change those columns to either a categorical array or to a numeric array with "checked" as 1's?
Thanks!
Accepted Answer
More Answers (1)
dpb
on 27 Jun 2020
0 votes
Use the optional valueset, and perhaps catnames inputs to categorical to define as desired.
1 Comment
Flynn McGuire
on 28 Jun 2020
Categories
Find more on Data Type Identification 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!