Create an annotation into a plot
3 views (last 30 days)
When i create an annotation into a plot to show me a specific value that I have previously calculated, in the plot it shows me a square, instead of the value I wanted.
This is what I got, keigenvalue is a number 6 for example.
keigenvalue = find(lambda > 1, 1, 'last'); % Gives me the number of principal components that got a eigenvalue superior than 1
y1 = plot(lambda,'*r');
dim = [0.2 0.5 0.3 0.3];
str = ['PC selected =' keigenvalue];
Thanks for your help.