How i can plot a constant function on the same figure with variable function ?

How i can plot a constant function on the same figure with variable function ?
i need to plot a function with it's average on the same figure
thanks in advance :D

 Réponse acceptée

Use
hold on
to add more curves to the same figure.
Check out the documentatino for more info - hold

Plus de réponses (0)

Communautés

Plus de réponses dans  Distance Learning Community

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by