trapezoidal numerical integration within a function
Mostrar comentarios más antiguos
Hello :)
I need to perform a trapezoidal intergration however i am unsure how to do this inside a fuction as i have only every done it with out. any help is very much apriacted.
3 comentarios
Ameer Hamza
el 15 de Mayo de 2020
There is no difference in calling a function inside or outside a function. Have you written your own code for trapezoidal integration, or are you using trapz()?
Rhea Gorringe
el 15 de Mayo de 2020
Ameer Hamza
el 15 de Mayo de 2020
Are you trying to integrate x*sin(x) from 1 to 100? What is the role of 'inarray' here?
Respuestas (1)
Nikhil Sonavane
el 19 de Mayo de 2020
0 votos
I would suggest you go through the documentation of trapz function as that would help you trapezoidal numerical integration efficiently.
Categorías
Más información sobre Numerical Integration and Differentiation 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!