integral of a numerical vectors

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

Risposte (1)

Use trapz :
trapz(Time,Volt);

3 Commenti

itai
itai il 24 Nov 2014
Thank you very much!
You are wellcome.
Perhaps you can accept my answer if it was helpful.

Accedi per commentare.

Richiesto:

il 24 Nov 2014

Commentato:

il 24 Nov 2014

Community Treasure Hunt

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

Start Hunting!

Translated by