Numerical integration of voltage over time

3 vues (au cours des 30 derniers jours)
Quong Axxong
Quong Axxong le 25 Juin 2016
Commenté : Star Strider le 25 Juin 2016
I have the vectors of time (T) and voltage (V).
According to the following expression:
% integral from 0 to t of voltage V in dt = k * i (t)
where:
k = known constant; (unit measure: A*V^-1*s^-1)
i(t) = current intensity as a function of time.
How can I numerically integrate in Matlab the voltage V to get i(t)?

Réponse acceptée

Star Strider
Star Strider le 25 Juin 2016
I would use the cumtrapz function.
  4 commentaires
Quong Axxong
Quong Axxong le 25 Juin 2016
Modifié(e) : Quong Axxong le 25 Juin 2016
It worked with median.
Thank you so much, you have been very helpful with both answers!
Star Strider
Star Strider le 25 Juin 2016
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by