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
2011 年 5 月 18 日
Use an integrator to integrate C. Then call PLOT to draw the results. Please post any details.
回答 (1 件)
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
2011 年 5 月 19 日
Ivan van der Kroon
2011 年 5 月 19 日
y=cumtrapz(C);
plot(t,y)
assuming t is monospaced
カテゴリ
ヘルプ センター および File Exchange で Numerical Integration and Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!