Plots a confusion matrix with colorscale, absolute numbers and precision normalized percentages. This is a basic alternative to matlab's plotconfusion if you do not have the Neural Network Toolbox.
usage:
plotConfMat(confmat)
or
plotConfMat(confmat, labels)
if you want to specify the class labels.