I want to calculate AUC score by using trapz function , integrating across rows. My matrix has dimension (180*10). So, There should be a table with 180 rows a and one column of AUC scores.

조회 수: 4 (최근 30일)
output should contain 180 rows and one column.
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2017년 9월 1일
Are you talking about Area Under Curve-AUC? If you apply in the complete matrix having the stated dimension, I don't seem any problem.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2017년 9월 1일
To repeat:
From the documentation:
  • Q = trapz(_,dim) integrates along the dimension dim using any of the previous syntaxes.
So to integrate across rows, use 2 for ‘dim’.
A more specific example with ‘A’ as your array:
AUC = trapz(A,2);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by