Question: how to calculate accuracy and precision in matlab?
Answer: accuracy = (tp+tn)/N; sensitivity = tp_rate; specificity = tn_rate; precision = tp/(tp+fp);