Hi,
Have a look at the solution given in this post:
perfcurve requires 3 input arguements, the ground truth labels of each image, the predicted scores by classify function, and the class labels that is considered to be positive. Look at the example in the perfcurve documentation link shared above,
Hope this helps!