

#Legend in matlab how to#
For more symbols, you can use LaTeX markup by setting the Interpreter property to 'latex'. How to Edit Legend in MATLAB Figure 22 Basics of MATLAB Programming Module-1 INFO4EEE 3.41K subscribers Subscribe 1.3K views 1 year ago Basics of MATLAB Programming In this video, steps. For a list of supported symbols, see the documentation. This will plot the additional points, but they will not be visible on the plot itself. 5 Answers Sorted by: 21 Another possible way to do this and it is called 'DisplayName': hold all for ind1:3 x 0:0. Translate Edited: MathWorks Support Team on By default, MATLAB supports a subset of TeX markup. The following example illustrates how two legends corresponding to two sets of plots in a figure can be created. Multiple legends can be created by using the function COPYOBJ to make a copy of a legend object.

The updated code above works, but the answer below is only relevant pre-2016b: figure The function LEGEND allows creation of only one legend object per axes.

This will plot the additional points, but because the coordinates are at NaN they will not be visible on the plot itself:ĮDIT : My original answer results in greyed out legend entries in 2016b. This is how I have solved this problem in the past: figure
