MATLAB: How to name/number each line graph in Y axis, instead of the 1-9 numbers

graphgraphicsimage processingMATLABplot

I want to name the line graphs in y axis like this (in red).
Program as follows
for i=1:9
g=GG(:,i)+i;
plot(X,g)
hold on
end
end

Best Answer

use the function text
text(X, Y, STR)
will place the string STR at the location (X,Y) on the current axes.