Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

how can i show the output of 2 clusters in one plot?

Asked by nadia naji

nadia naji

on 28 Dec 2012
Accepted Answer by Image Analyst

Image Analyst

I have two clusters of data each cluster has x,y (coordinates) and a value to know it's type(1 class1,2 class 2)I have plotted these data but i would like to split these classes with boundary(visually). what is the function to do such thing. i tried contour but it did not help!

0 Comments

nadia naji

nadia naji

Tags

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst

Image Analyst

on 28 Dec 2012
Accepted answer

You could use the plot function. Use "hold on" after you plot the data points so the line/curve doesn't blow away your scatterplot. You could also plot each class in a different color. You could use the convex hull of the points and then plot that, or you could use plot() or line() to place a line between the clusters to divide/separate them.

1 Comment

nadia naji

nadia naji

on 30 Dec 2012

thanks alot.

Image Analyst

Image Analyst

Contact us