I understand that you would like to know how to find the Area under the Curve for ROC using MATLAB. If you have the true positive rates and false positive rates, you could use the command TRAPZ to calculate area.
Please refer to the following documentation page to understand about TRAPZ: