Borrar filtros
Borrar filtros

Using patch function to fill the space in between two lines

1 visualización (últimos 30 días)
Swarnava Pramanik
Swarnava Pramanik el 19 de Feb. de 2017
Editada: Swarnava Pramanik el 19 de Feb. de 2017
Hi All,
I'm creating two lines using the patch function and filling the space in between then with color specifying the data. But for creating two line one four coordinates are required so while specifying the color to fill in the space with I'm only able to mention 4 data points while I want to color the space in between using all my 90 data points. Is there a way around to do this because the color vector in the patch also requires it's length to be same as the length of the coordinates provides to draw the line? I'm also attaching an image where I have used only 4 data points for coloring.
Thanks,
Swarnava

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by