This is a short matlab program used for sentiment analysis, with the model being adjustable by changing the fourth paramater of the function (see code comments).
Training and testing data was formed of a document of over 8000 tweets each tagged with four sentiments.