AUC calculates Area-under-ROC curve function [AREA,TH,SEN,SPEC,ACC] = auc(d,c,color); d DATA c CLASS, vector with 0 and 1 color optional, plots ROC curve function [AREA,TH,SEN,SPEC,ACC]=auc(d1,d0,color); d1 DATA of class 1 d2 DATA of class 0 color optional, plots ROC curve OUTPUT: AREA area under ROC curve TH Threshold SEN sensitivity SPEC specificity ACC accuracy