- Q = trapz(_,dim) integrates along the dimension dim using any of the previous syntaxes.
How to integrate across row values?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bubblesjinx
am 31 Aug. 2017
Bearbeitet: KALYAN ACHARJYA
am 1 Sep. 2017
I have an array of size 180*10, and I want to find AUC score of values across rows by applying trapz function.How to make loop to integrate across rows?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 31 Aug. 2017
From the documentation:
So to integrate across rows, use 2 for ‘dim’.
1 Kommentar
KALYAN ACHARJYA
am 1 Sep. 2017
Bearbeitet: KALYAN ACHARJYA
am 1 Sep. 2017
%
X=[ 1 2 3 4 5 7....];
Result=trapz(X,2);
% Gives Integrate result
%
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!