MATLAB code now produces dendrite locations