Effacer les filtres
Effacer les filtres

integration

1 vue (au cours des 30 derniers jours)
mouna
mouna le 18 Mai 2011
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 commentaire
Jan
Jan le 18 Mai 2011
Use an integrator to integrate C. Then call PLOT to draw the results. Please post any details.

Connectez-vous pour commenter.

Réponses (1)

John D'Errico
John D'Errico le 18 Mai 2011
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 commentaires
mouna
mouna le 19 Mai 2011
good morning
sorry but i don't understand; i need to plot this integration in each minute so how i can do it
Ivan van der Kroon
Ivan van der Kroon le 19 Mai 2011
y=cumtrapz(C);
plot(t,y)
assuming t is monospaced

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox 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