How do i using scatter plot in matlab to plot 2D or 3D data with new labels ?
显示 更早的评论
Dear experiences
i have a dataset stored in an excel file, where data has labels from A1..An as in the following:
states Dim1 Dim2 part
A27 0.000961859 0.030987232 1
A127 0.015515794 0.047256875 1
A34 0.063094311 -0.188401909 2
A47 0.069889903 -0.162175315 2
A12 -0.351944163 -0.092892019 3
A112 0.108680014 -0.297203971 4
My questions are :
- How i can using scatter plot in matlab to plot the above labels as in the attached figure?
- Is there any option to plot every collection of points with distinct color like ( part1=black, part2=red, etc. )?
- fianlly, i need to create labels for every collection, my labels are part1, part2, part3, part4) based on my dataset, so i hope to this property can be performed based on Dim1 and Dim2 values range.
thanks for any suggestion.

4 个评论
KSSV
2017-2-9
What is the criteria to divide Ai's into various parts?
ahmed obaid
2017-2-9
KSSV
2017-2-9
Then do you have these Ai's separately for each cluster?
ahmed obaid
2017-2-9
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!