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.

11 次查看(过去 30 天)
output should contain 180 rows and one column.

采纳的回答

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