trapezoidal numerical integration within a function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Ameer Hamza
2020-5-15
Are you trying to integrate x*sin(x) from 1 to 100? What is the role of 'inarray' here?
回答(1 个)
Nikhil Sonavane
2020-5-19
I would suggest you go through the documentation of trapz function as that would help you trapezoidal numerical integration efficiently.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!