I have multiple curves plot for which I need to specify the legends automatically. I use the following script in the code;
txt = ['\alpha=' num2str(p)];
plot(t, L, 'displayname', txt, 'linewidth', 2 );
lgd = legend;
lgd.NumColumns = 2
title(lgd, 'Order of FDE, \alpha')
The point is, there are 10 legends in the same plot the problem is, each legend is associated with different colors not the shape of the curves when they reached more than 4 or 5 legends it repeat the color which create confusion in recognition of the curves. Now, please help me how can I set my legends on top of each curve like the legends shown in the picture below. It is a contour plot, I need exactly as it contain. While the problem is in the curves with legends associated with beta.
Thanks in advance!