MATLAB: How to distinguish cell or categorical arrays from the numeric columns in a dataset array

celldatasetnumericproperties

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?

Best Answer

Try calling class() on each column and seeing what it reports the data type is.