MATLAB: How to use ksdensity as a 3D info (color) on a 2D line plot

density graphksdensity

Hi,
I did a multi (500+) simulations of the same event. I plot the enveloppe of these results (see picture)
now I want to use color to add a new info, the density on each day of sims, something looklike the next picture.
I try ksdensity to define an empiric density but Im not abale to plot the both idea on a same graph…

Best Answer

Update, I find scatter3.
It is not perfect but it do the job for a first test... somenone find better?
Related Question