MATLAB: Nans affecting area plots

2d plotsareanan'splot

I'm trying to create an area plot but there are nans in my data. The correct lines (set by EdgeColor) are drawn on the plot but the area between doesn't get shaded. Is there any way I can overcome this without removing the nans from my data?

Best Answer