Error using KMEANS. First argument must be a real array. Please help
Ältere Kommentare anzeigen
Hi
I am a real MATLAB rookie and nmeed to carry cluster analysis, having the following code:
X = ESIAS24
intensityCluster = kmeans(X,4)
ESIAS24 is a 2 column table, from an excel spreadheet:

is anyone able to help me? The table is real (well ... its number), and I do no know how to force the integers to be "real number, if this is the problem
4 Kommentare
Walter Roberson
am 27 Jul. 2022
What shows up for class(X) ?
I have a suspicion that it might be a table() object instead of a double precision array.
KSSV
am 27 Jul. 2022
Convert you table to array using table2array
João Serras
am 27 Jul. 2022
João Serras
am 27 Jul. 2022
Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!