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?

8 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by