How do I distinguish cell or categorical arrays from the numeric columns in a dataset array?
4 次查看(过去 30 天)
显示 更早的评论
I'm working with a dataset array with both numeric and string inputs. I am looking to distinguish the cell or categorical arrays from the numeric columns. Is there a simple function for this?
1 个评论
采纳的回答
Image Analyst
2016-8-9
Try calling class() on each column and seeing what it reports the data type is.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!