Voluminas out of AUC of Flow,time graph

Hello,
very new to matlab and basic programming. I've got a dataset of flows over time with regular intervals. I need for each interval the moved volume and so I would like to calculate the AUC for each time interval and so generate a new dataset with these volumina. I only got as fas as to calculate the entire AUC with trapz(t,Q), but I need to know the AUC for each interval. Can anyone help?

 Risposta accettata

JB
JB il 3 Set 2015
Modificato: JB il 3 Set 2015
Solved with:
>> Z = zeros(170, 1)
for i = 1:(size(Qao, 1)- 1)
Z(i) = trapz(t(i:i+1), Qao(i:i+1))
end
only problem was that Z was printed 170 times, but we've got our data!

Più risposte (0)

Categorie

Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange

Tag

Richiesto:

JB
il 3 Set 2015

Modificato:

JB
il 3 Set 2015

Community Treasure Hunt

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

Start Hunting!

Translated by