MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by huda nawaf
on 12 Aug 2012

hi,

I got the indices of clusters of my data. I would like to see the result with drawing. i.e I hope to see the clusters graphically.

can do that?

thanks in advance

*No products are associated with this question.*

Answer by per isakson
on 13 Aug 2012

A search for "cluster" refined by Graphics in the File Exchange finds twenty contributions.

... and the statistical toolbox

huda nawaf
on 13 Aug 2012

thanks, I visited that link and run plotcluster: http://www.mathworks.se/matlabcentral/fileexchange/31710-plotclusters-m

but I confused with the first input of this function, the author said that the first input must be n*2 or n*3 and do not know exactly what are the elements of n*2 or n*3 if n is the number of observations , is that meaning I have to creat array with size 6*2 , because i have for examplr 6 observations and the matrix be data=[1 1;2 2 ; 3 3; 4 4; 5 5; 6 6]

I'm not sure, if that proper or not.

Walter Roberson
on 13 Aug 2012

Look at the Description at that link. It describes exactly what each of the parameters means.

Image Analyst
on 13 Aug 2012

There are no *clusters* in that data because your data is uniformly spaced. Or there are 6 clusters with just one point in them, or one big cluster with 6 points. You don't really have aggregation or clumping of any of the points.

Answer by Ilya
on 13 Aug 2012

Huda, when I answered your other question, I suggested that you run 'doc linkage' and gave you a link to the web doc for that function. At the bottom of that page, you can see examples of two different plots. Are you asking for a plot that is not on that page?

huda nawaf
on 13 Aug 2012

i saw , but I think scatter do not work with my case. please see comments below with image analyst

thanks

Answer by Image Analyst
on 13 Aug 2012

Why not just use the scatter() function? If that doesn't work, then explain why not, and use more words to do it.

Show 27 older comments

huda nawaf
on 30 Aug 2012

Image Analyst
on 31 Aug 2012

Once you know the centers and radius, you can use rectangle() or check the FAQ to draw the colored circles. Try it.

## 0 Comments