Numerical integration of voltage over time

3 views (last 30 days)
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)?

Accepted Answer

Star Strider
Star Strider on 25 Jun 2016
I would use the cumtrapz function.
  4 Comments
Quong Axxong
Quong Axxong on 25 Jun 2016
Edited: Quong Axxong on 25 Jun 2016
It worked with median.
Thank you so much, you have been very helpful with both answers!

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!