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.
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Bubblesjinx
 am 1 Sep. 2017
  
    
    
    
    
    Kommentiert: Star Strider
      
      
 am 3 Sep. 2017
            output should contain 180 rows and one column.
1 Kommentar
  KALYAN ACHARJYA
      
      
 am 1 Sep. 2017
				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.
Akzeptierte Antwort
  Star Strider
      
      
 am 1 Sep. 2017
        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);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


