I did classification by pca for raman spectroscopy data and i want to know how to compute confusion matrix for new test data classification., i.e., If I want to test the classifier performance for new data, then how to find the accuracy for that using confusion matrix. And also how to plot different groups by using inbuilt function of MATLAB, pca(X)?