フィルターのクリア

Integral of exponential function that contains another integral

2 ビュー (過去 30 日間)
djr
djr 2020 年 5 月 17 日
コメント済み: Ameer Hamza 2020 年 5 月 17 日
Hello everyone,
I have the following integral:
where and c is a constant in one case and in another case. In addition, my r values are
r = linspace(0,4,100);
Can you please help me with the way to code this?
Thank you,
djr

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 17 日
Try this
inner_int = @(t) integral(@(s) (1-exp(-s))./s, 0, t);
H = @(xi) integral(@(t) exp(-t+3*inner_int(t)), 0, xi, 'ArrayValued', 1);
r = linspace(0,4,100);
c = 1; % for example
Xi = c*r.^2;
H_val = zeros(size(Xi));
for i=1:numel(Xi)
H_val(i) = H(Xi(i));
end
plot(Xi, H_val);
xlabel('\xi');
ylabel('H(\xi)')
  2 件のコメント
djr
djr 2020 年 5 月 17 日
This is working perfectly. You helped me a lot!
Ameer Hamza
Ameer Hamza 2020 年 5 月 17 日
I am glad to be of help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by