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
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
KSSV 2022 年 7 月 27 日
Convert you table to array using table2array
João Serras
João Serras 2022 年 7 月 27 日
Gee thanks!!!!
Up and running!
João Serras
João Serras 2022 年 7 月 27 日
Used table2array...

サインインしてコメントする。

回答 (0 件)

カテゴリ

製品

質問済み:

2022 年 7 月 27 日

コメント済み:

2022 年 7 月 27 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by