Surely you know about the mean(), max(), and min() functions, so what does "in the form of MAXIMUM, MINIMUM and MEAN" mean?
Secondly, what are your " desired" values of bwdist? It gives a lot of values, but which are the values that you desire?
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!