some matlab algorithm useding machine learning