Find integral of a function where upper limit changes inside the function
5 ビュー (過去 30 日間)
古いコメントを表示
I want to calculate integral of in equation 12 in image.

When t=30,D=250, x=40., I have found it with following code
t = 30
a=@(g) ((t-g).^(-1.5)).*exp(-4./(t-g));
b=integral(a,0,t);
h=282.09.*b
But I am unable to do it when t is a vector say t = 1:30, it means I want to find out h at every t from 1 to 30.
0 件のコメント
採用された回答
Birdman
2017 年 11 月 6 日
編集済み: Birdman
2017 年 11 月 6 日
for t = 1:1:30
a=@(g) ((t-g).^(-1.5)).*exp(-4./(t-g));
b=integral(a,0,t);
h(t)=282.09.*b
end
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

