Error using KMEANS. First argument must be a real array. Please help
显示 更早的评论
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 个评论
Walter Roberson
2022-7-27
What shows up for class(X) ?
I have a suspicion that it might be a table() object instead of a double precision array.
KSSV
2022-7-27
Convert you table to array using table2array
João Serras
2022-7-27
João Serras
2022-7-27
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!