[X,Y] = perfcurve(labels,scores,posclass); plot(X,Y);
labels are the true labels of the data, scores are the output scores from your classifier (before the threshold) and posclass is the positive class in your labels.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!