MATLAB: How Can I resolve this problem in the following code

digital image processingMATLAB

%Matlab Code
% % Step 7: Visualize the Segmentation
imshow(labeloverlay(I,BWfinal))
title('Mask Over Original Image')
BWoutline = bwperim(BWfinal);
Segout = I;
Segout(BWoutline) = 255;
figure
imshow(Segout)
title('Outlined Original Image')
title('Segmented Image');
%%Error Occured
Undefined function 'labeloverlay' for input arguments of type 'uint8'.
Error in practice (line 50)
imshow(labeloverlay(I,BWfinal))

Best Answer

Upgrade to R2017b or newer.