Add legend to axes - MATLAB legend
www.mathworks.com › help › matlabRecalling the legend function does not reset legend properties, such as the location or orientation. If a legend exists, then the legend function updates the existing legend. An Axes object can have only one legend. The legend reflects the visibility of graphics objects in the axes.
Add Legend to Graph - MATLAB & Simulink
www.mathworks.com › help › matlabUse name-value pairs in the legend command. In most cases, when you use name-value pairs, you must specify the labels in a cell array, such as legend({'label1','label2'},'FontSize',14). Use the Legend object. You can return the Legend object as an output argument from the legend function, such as lgd = legend.
legend (MATLAB Functions)
matlab.izmiran.ru › help › techdoclegend associates strings with the objects in the axes in the same order that they are listed in the axes Children property. By default, the legend annotates the current axes. MATLAB displays only one legend per axes. legend positions the legend based on a variety of factors, such as what objects the legend obscures.