Question: How can I extract the entries in a 2-column matrix solution and arrange themin separate ordered pairs?

Hello all.

I am using a k-means cluster routine to partition a set of points into a fixed number of clusters.

The solution assigns points belong to clusters, and this is given in matrix-form. The attached file gives an example of a simple problem that is concerns two clusters (matrices). The entries of each cluster / matrix represent the coordinates of the points in the plane.

I am looking to ..

1. Isolate and label each cluster solution (there may be up to 10), and 

2. For each matrix / cluster, arrange the entries into separate ordered pairs. 

For example, in this instance, I wish to obtain the following form ..

A: = [[-6.08, 52.99], [-7.26, 55.29], [-6.24, 53.29]]

B: = [[-9.72, 51.46], ... , [-9.81, 53.76]]

I have made several attempts to solve for this, but I simply cannot get the solution to output this form.

Any advise / help you can give will be gratefully received. 

Thanks for reading!

Download MaplePrimes_May_31.mw

Please Wait...