Updated segmentFeatures.m