Fill below function fplot

13 Ansichten (letzte 30 Tage)
Joaquin Saldain
Joaquin Saldain am 25 Jul. 2018
Beantwortet: dpb am 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');
  1 Kommentar
madhan ravi
madhan ravi am 25 Jul. 2018
can you check out area documentation?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

dpb
dpb am 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))

Weitere Antworten (0)

Kategorien

Mehr zu Networks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by