A piece of fairly simple Matlab script to draw the ROC Curve from an array of scores and an array of labels. function [Tps, Fps] = ROC(scores, labels) %% Sort Labels and Scores by Scores sl = [scores; labels]; [d1 d2] = sort(sl(1,:)); sorted_sl = sl(:,d2); s_scores = sorted_sl(1,:); s_labels = round(sorted_sl(2,:)); %% Constants counts
Error: >> make /bin/bash: -c: line 0: unexpected EOF while looking for matching `"' /bin/bash: -c: line 1: syntax error: unexpected end of file ??? Error using ==> mex at 208 Unable to complete successfully. Error in ==> make at 5 mex -O -largeArrayDims -I..\ -c ..\svm.cpp Fix: Under folder ./libsvm-3.1/matlab Open file make.m replace