Makes a legend entry
MuPAD® notebooks are not recommended. 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.
Legend makes a legend entry and activates
Legend is used to set a
the function and activate the legend. The line does not appear in
plot(plot::Function2d(cos(x), x = 0..2*PI, Legend = "cos(x)"), plot::Line2d([0, 1], [4, cos(4)], Color = RGB::Black))