MATLAB: How to show results for curves in a graph

graphics

I have a graph with 5 curves. I have certain results for each curve. How can i print them in the graph just like legend?

Best Answer

A = rand(3,10) ;
M = mean(A,2) ;
plot(A')
str = cell(3,1) ;
for i = 1:3
str{i} = strcat('mean=',num2str(A(i))) ;
end
legend(str)
Related Question