Integral of PDF function
5 次查看(过去 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.
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!