integration problem
Mostrar comentarios más antiguos
I need to integrate f(x)*cos(x)dx for x from 0 to 2*pi.
For f(x), I have a list of 33 y-values with corresponding x=[0:2*pi/32:2*pi].
How do I integrate this in MATLAB?
Respuestas (2)
Walter Roberson
el 17 de Mayo de 2012
trapz(x,y .* cos(x))
mohan krishna
el 15 de Feb. de 2023
0 votos
integral phi/2 0 cosxdx
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!