Feature extraction code based on wavelet transform.m