MATLAB: Fill below function fplot fplotgraphmatlab function 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'); Best Answer Madan's comment amplified...fnF=@(x) betapdf(x,a_beta,b_beta);figurefplot(@(x) betapdf(x,a_beta,b_beta),[0 1],'b');hold onx=linspace(0,0.5);area(x,fnF(x)) Related SolutionsMATLAB: CDF for Loglogistic distribution Hello ZC,They are equivalent. In Matlabcdf = e^z / (1+e^z) % the missing onepdf = (1/(sigma*x))*e^z / (1+e^z)^2wherez = (log(x)-mu)/sigmaWhen you make the substitution (as mentioned in wikipedia, where they use s in place of sigma)beta = 1/sigma e^mu = alphathene^z = (x/alpha)^betaand for wiki,cdf = (x/alpha)^beta) /(1+(x/alpha)^beta) pdf = (beta/alpha)*(x/alpha)^(beta-1)/(1+(x/alpha)^beta)^2 MATLAB: How do you use function handles on polynomial functions fplot(@(x) x^2 + 3*x +3,[0, 10]) Related QuestionHow to plot this implicit function1/y on y-axisNeed help plotting confidence intervals
Best Answer