Numerical integration of voltage over time

3 visualizaciones (últimos 30 días)
Quong Axxong
Quong Axxong el 25 de Jun. de 2016
Comentada: Star Strider el 25 de Jun. de 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)?

Respuesta aceptada

Star Strider
Star Strider el 25 de Jun. de 2016
I would use the cumtrapz function.
  4 comentarios
Quong Axxong
Quong Axxong el 25 de Jun. de 2016
Editada: Quong Axxong el 25 de Jun. de 2016
It worked with median.
Thank you so much, you have been very helpful with both answers!
Star Strider
Star Strider el 25 de Jun. de 2016
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB 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