MATLAB: Error when solving an equation involving a poisson pdf

equation solvingerror using symenginepoisson

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!

Best Answer

Try this (instead of using the Symbolic Math Toolbox):
lambda = fzero(@(lambda) poisspdf(10, lambda) - 0.1, 5)
producing:
lambda =
8.0299