Filter löschen
Filter löschen

Filling different regions of a figure with different colous/patterns

1 Ansicht (letzte 30 Tage)
Hello! I have a figure plotted between say y=sin(x) and (x) where x=0:pi/18:2*pi. I would like create 3 regions as defined blow, on the figure and fill with differet colurs or patterns.
Region1:y<-0.5 Region2:-0.5<=y<=0.5 Region3:y>0.5
How to do it in matlab?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Mai 2015

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by