integral of a numerical vectors

3 visualizaciones (últimos 30 días)
itai
itai el 24 de Nov. de 2014
Comentada: Zoltán Csáti el 24 de Nov. de 2014
Hi,
I have 2 vectors containing time and Voltage values respectively: 1. vector containing voltage values - "Volt" 2. vector containing time values - "Time" I want to calculate the integral of "Volt" vector as function of the time, the range is from the first value of the vector to the last value.
please help me, Itai

Respuestas (1)

Zoltán Csáti
Zoltán Csáti el 24 de Nov. de 2014
Use trapz :
trapz(Time,Volt);
  3 comentarios
Zoltán Csáti
Zoltán Csáti el 24 de Nov. de 2014
You are wellcome.
Zoltán Csáti
Zoltán Csáti el 24 de Nov. de 2014
Perhaps you can accept my answer if it was helpful.

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by