Add legend to graph - MATLAB legend - MathWorks - MATLAB and Simulink for Technical Computing
This MATLAB function creates a legend for the current axes using the specified labels. ... Label for each object, specified as a comma-separated list of character vectors. Example: legend('Sine Function','Cosine Function') The legend associates the labels...