I would like to add two legend in my y=exp(x) plot:
i.e.
x=1:1:10;
y=exp(x);
figure; bar(x,y,'FaceColor',[0 .5 .5],'EdgeColor',[0 .9 .9],'LineWidth',0.5); hold on; grid on;
h_legend1=legend(strcat('info 1: ', num2str(value 1),'info 2:', num2str(value 2),'%') ,'Location','best');
set(h_legend1,'FontSize',12); hold on;
h_legend2=legend(strcat('info 1: ', num2str(value 1),'info 2:', num2str(value 2),'%') ,'Location','best');
set(h_legend1,'FontSize',12); hold on;
but I cant ... only the legend2 is plotted ... any idea is more than welcome enter code here