Fill below function fplot

조회 수: 3 (최근 30일)
Joaquin Saldain
Joaquin Saldain 2018년 7월 25일
답변: dpb 2018년 7월 25일
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
madhan ravi
madhan ravi 2018년 7월 25일
can you check out area documentation?

댓글을 달려면 로그인하십시오.

채택된 답변

dpb
dpb 2018년 7월 25일
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))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by