integration

hi, i have this integral: y(t)=integral(C(t)*dt)
i need to plot y=f(t) how i can do it?
thanks in advance

1 个评论

Jan
Jan 2011-5-18
Use an integrator to integrate C. Then call PLOT to draw the results. Please post any details.

请先登录,再进行评论。

回答(1 个)

John D'Errico
John D'Errico 2011-5-18

1 个投票

For a numeric vector, just use cumtrapz. For a symbolic function, just evaluate the integrated C(t) at a list of points to plot.

2 个评论

mouna
mouna 2011-5-19
good morning
sorry but i don't understand; i need to plot this integration in each minute so how i can do it
y=cumtrapz(C);
plot(t,y)
assuming t is monospaced

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

提问:

2011-5-18

Community Treasure Hunt

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

Start Hunting!

Translated by