Fill below function fplot

12 views (last 30 days)
Joaquin Saldain
Joaquin Saldain on 25 Jul 2018
Answered: dpb on 25 Jul 2018
How to fill the area below this Beta density, between x=0 and x=0.5.
% fplot(@(x) betapdf(x,a_beta,b_beta),[0 1],'b');

Accepted Answer

dpb
dpb on 25 Jul 2018
Madan's comment amplified...
fnF=@(x) betapdf(x,a_beta,b_beta);
figure
fplot(@(x) betapdf(x,a_beta,b_beta),[0 1],'b');
hold on
x=linspace(0,0.5);
area(x,fnF(x))

More Answers (0)

Categories

Find more on Networks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!