Ältere Kommentare anzeigen
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 Kommentar
Jan
am 18 Mai 2011
Use an integrator to integrate C. Then call PLOT to draw the results. Please post any details.
Antworten (1)
John D'Errico
am 18 Mai 2011
1 Stimme
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 Kommentare
mouna
am 19 Mai 2011
Ivan van der Kroon
am 19 Mai 2011
y=cumtrapz(C);
plot(t,y)
assuming t is monospaced
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!