Error when solving an equation involving a poisson pdf
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
Hello, I am trying to find for what values of lambda P(X=10) = 0.1, if X~Po(lambda)
My code is: 
syms lambda 
solve(poisspdf(10,lambda)==0.1, lambda)
the error I get is: 
'error using symengine. Unable to prove 'lambda<0' literally . Use 'isAlways to test the statement mathematically
any help would be much appreciated! 
댓글 수: 0
채택된 답변
  Star Strider
      
      
 2019년 11월 17일
        Try this (instead of using the Symbolic Math Toolbox): 
lambda = fzero(@(lambda) poisspdf(10, lambda) - 0.1, 5)
producing: 
lambda =
     8.0299
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

