Hi,

I wonder is there a way to plot curve and fill the area between this curve and baseline with colors that depend on the third array values? Example of this you can see here (second and third plots): https://www.mathworks.com/matlabcent...screenshot.png

To do this for a single curve we should have X-array values, Y-array values and the third array values Z and Z codes the color of filled polygon in each point (X, Y).

In Matlab that is done with patch() function https://www.mathworks.com/help/matlab/ref/patch.html

Best regards