Try 3 algorithms to Implement a Spam Filter in Matlab: Naive Bayes, Decision Tree and Random Forests.