feature encoding library in matlab