How can I change the colour background in a region using plot?

2 views (last 30 days)
I have been trying to change the colour background of a concrete region in a plot but I don't know how can I do it. I would be very gratefull if you can help me to resolve this problem. I would like changing the colour of the region between the red lines that you can see in the next image. Thanks in advance!

Answers (1)

Mischa Kim
Mischa Kim on 7 Apr 2014
Diego, you could plot a properly sized rectangle on top of which ( hold all ) you plot all other data.

Categories

Find more on Line 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!