How to show the legend of a symbolic function while plotting its graph? I have a created a symbolic function by running the code and i am plotting it as well, but i wanted to show the calculated function also in its plot. How to resolve this issue?

7 次查看(过去 30 天)
I am plotting several functions in one graph using
hold on
and to show the legend is am using
legend('show')
but it only shows this not its values.
Please help me with this?

采纳的回答

Ayush Bansal
Ayush Bansal 2020-11-23
use fplot to plot the expression.
Check out the Analytical Plotting with Symbolic Math Toolbox for more details.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by