Integral of PDF function
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
So as the title says I want to evaluate the integral of PDF function but also with other expressions in the integral, Also my input x for the PDF function is a division of two variables.
Need help!
using : MATLAB R2019a
Thank you.
![int.jpeg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/270770/int.jpeg)
See picture.
0 件のコメント
採用された回答
Walter Roberson
2020 年 2 月 10 日
syms R t w
PDF = @(x) exp(-x.^2/2) / sqrt(sym(2)*sym(pi));
result = int(PDF(t/R) / R * (1-t/w), t, 0, w)
2 件のコメント
Walter Roberson
2020 年 2 月 10 日
R = randn;
w = 10 * rand;
PDF = @(x) exp(-x.^2/2) ./ sqrt(2*pi);
fun = @(t)PDF(t/R)./R.*(1-t./w);
result = integral(fun, 0, w)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!