MATLAB: Getting errors as undefined functions,when using imsegkmeans,lazy snapping functions

undefined functions

I am using MATLAB 2016 version to perform various segmentation techniques on image.
while performing ''K-means clustering based segmentation''and ''Graph based segmentation'' techniques,
I am getting errors like undefined functions.
Are there any other related functions to perform respective segmentation techniques in the same 2016 version?