FUNCTION REFERENCE
geopdf
Geometric probability mass function.
Geometric probability mass function.
Syntax
Y = geopdf(X, P)Evaluates the probability mass of the geometric distribution with success probability P in [0, 1] (P = 0 puts all the mass at Inf); X counts the failures before the first success at X. Non-integer X gives 0. Parameters without a default are required. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.
Example
geopdf(2, 0.3)These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.