plotroc
plotroc(act,pred,pos,thr,options) plots a receiver operating characteristic.
Roc curve
data = urlread('https://www.mathlayer.com/doc/downloads/roccurve.csv')% fetching data from the server
roccurve = readtable(data, 'isstring', true) act = roccurve{:,1}; pred = roccurve{:,2} plotroc(act,pred)
Roc curve with vector of thresholds
data = urlread('https://www.mathlayer.com/doc/downloads/roccurve.csv')% fetching data from the server
roccurve = readtable(data, 'isstring', true) act = roccurve{:,1}; pred = roccurve{:,2} plotroc(act,pred,[],(1:-0.2:0),struct('confTable','plot'))