How to integrate across row values?

2 visualizaciones (últimos 30 días)
Bubblesjinx
Bubblesjinx el 31 de Ag. de 2017
Editada: KALYAN ACHARJYA el 1 de Sept. de 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?

Respuesta aceptada

Star Strider
Star Strider el 31 de Ag. de 2017
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’.
  1 comentario
KALYAN ACHARJYA
KALYAN ACHARJYA el 1 de Sept. de 2017
Editada: KALYAN ACHARJYA el 1 de Sept. de 2017
%
X=[ 1 2 3 4 5 7....];
Result=trapz(X,2);
% Gives Integrate result
%

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by