I was wondering if I could calculate the above integral, where f is the exponential density function and x is a vector.
x=linspace(0,0.1,5);
Any help will be greatly appreciated.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 18일

0 개 추천

Your notation is not clear. There is no obvious meaning to integrating with a vector. If you want to produce a vector of integrals then you can use the VectorValued option of integral()
Your title mentions stepwise function but there is no obvious stepwise function in your variable of integration, y.
If you do have a function that is stepwise in your variable of integration be sure to use the Waypoints option of integral()

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

질문:

2017년 2월 18일

답변:

2017년 2월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by