Save the posterior probability of each class for test data (matlab).