Generating labels for my scatter plot

So I did PCA for a set of big data and was able to get the scatter plot for it. Now my question is, would there be a code where I can generate the labeling from the data I imported. Like for example, the code would show me that this specific point is that specific sample in your data file. I need that because in the future I would need to compare and conclude the differences. Your help is very much appreciated thank you very much!

1 Comment

Read the documentation and examples for text() and also examples in the sections on Graphics Annotations -- your only issue really is that you have to have some way to programmatically generate/obtain the information you want to display.

Sign in to comment.

Answers (0)

Categories

Asked:

on 7 May 2021

Commented:

dpb
on 7 May 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!