Integral of PDF function
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rnd rnd
am 10 Feb. 2020
Kommentiert: Walter Roberson
am 10 Feb. 2020
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Feb. 2020
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 Kommentare
Walter Roberson
am 10 Feb. 2020
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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!