Add this object to the legend?
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
LegendEntry turns legend entries of individual
objects on and off, if
LegendEntry is a technical internal attribute.
You will most likely want to use the library interface attribute
order to set legend entries.
If legends are active (i.e.,
LegendVisible is set
which objects have entries in the legend. Only objects with
= TRUE show up there.
As long as
LegendVisible has its default
no effect whatsoever.
By default, functions have
LegendEntry = TRUE,
while, e.g., lines do not:
plot(plot::Function2d(cos(x), x = 0..2*PI, Name = "cos(x)"), plot::Line2d([0, 1], [4, cos(4)], Name = "cos(0) .. cos(4)", Color = RGB::Black), LegendVisible)
LegendEntry to turn on the legend entry
for the line:
plot(plot::Function2d(cos(x), x = 0..2*PI, Name = "cos(x)"), plot::Line2d([0, 1], [4, cos(4)], Name = "cos(0) .. cos(4)", Color = RGB::Black, LegendEntry = TRUE), LegendVisible)