Data Plan Kernel Density Estimation Matlab