Find area under curve of every n rows
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
David du Preez
am 18 Mai 2017
Kommentiert: KSSV
am 18 Mai 2017
Hi. I have a 648 x 14 matrix. I want to calculated the area under the curve of every 24 values created by the values in column 5. I can do this within a loop but I want to perform the same function on different matrices with a varying number of rows. Is it possible to do this without a loop
for i = 1:27
area(i,1) = trapz(MAM10(24*i-23:24*i,5));
end
0 Kommentare
Akzeptierte Antwort
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!