How do I distinguish cell or categorical arrays from the numeric columns in a dataset array?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sh10101
am 9 Aug. 2016
Kommentiert: Sean de Wolski
am 9 Aug. 2016
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 Kommentar
Akzeptierte Antwort
Image Analyst
am 9 Aug. 2016
Try calling class() on each column and seeing what it reports the data type is.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!