Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape as the input arguments.
h=@(x)fillmissing(x,'linear');
X=h(p.XData);
Y=h(p.YData);
fill(X,Y,'r');
hold on
fill3(X,X-X,Y,'r');
fimplicit3(f,FaceC='r',EdgeC='none')
Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape as the input arguments.