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

2 views (last 30 days)
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

Accepted Answer

Dyuman Joshi
Dyuman Joshi on 9 Aug 2023
Use
hold on
to add more curves to the same figure.
Check out the documentatino for more info - hold

More Answers (0)

Communities

More Answers in the  Distance Learning Community

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!