Hi Everyone, can someone help me on how to use the K-mean clustering or perhaps share with me the suitable coding use to cluster wind speed data. I hava wind speed data in the form of Latitude, Longitude, Wind Speed. I want to cluster the data into 3 groups.
Prashant Kumar answered .
2025-11-20
If you have all the lat and lon values, then just put each into kmeans separately:
numColumns = 26; % Or however many columns you know there to be. [xIndexes, xCentroids] = kmeans(lon, numColumns); numRows = 50; % Or however many rows you know there to be. [yIndexes, yCentroids] = kmeans(lat, numRows);