I want to plot binopdf of X given certain values of n and p although when i endter binopd(x,3,.7) for example i get an error of "undefined function x" do i need to download an extension or how do i manually enter the binomial distribution?

 채택된 답변

madhan ravi
madhan ravi 2018년 11월 18일
편집: madhan ravi 2018년 11월 18일

0 개 추천

binopdf(X,3,.7) %you put x instead od X , matlab is case sensitive

댓글 수: 6

Allend Botani
Allend Botani 2018년 11월 18일
I tried X too and i got this
madhan ravi
madhan ravi 2018년 11월 18일
upload the values of X here, type
whos X
in command window and paste the result here
Allend Botani
Allend Botani 2018년 11월 18일
i dont know the values for X all i know is that X is a random variable with the PMF as the binomial distribution
madhan ravi
madhan ravi 2018년 11월 18일
편집: madhan ravi 2018년 11월 18일
see so you have to define X with values you cant use it as a variable
Allend Botani
Allend Botani 2018년 11월 18일
oh i see..just a side question, how qould i use a factorial symbol "!" in matlab? Thank you for your help
madhan ravi
madhan ravi 2018년 11월 18일
Anytime :) , use factorial() , if my answer helped make sure to accept the answer

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Downloads에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 11월 18일

댓글:

2018년 11월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by