### Function Reference: `logipdf`

statistics: y = logipdf (x, mu, sigma)

Logistic probability density function (PDF).

For each element of x, compute the probability density function (PDF) of the logistic distribution with location parameter mu and scale parameter sigma. The size of p is the common size of x, mu, and sigma. A scalar input functions as a constant matrix of the same size as the other inputs.

Both parameters must be reals and `sigma > 0`. For `sigma <= 0`, `NaN` is returned.

Further information about the logistic distribution can be found at https://en.wikipedia.org/wiki/Logistic_distribution

See also: logicdf, logiinv, logirnd, logifit, logilike, logistat

Source Code: logipdf

### Example: 1

     ## Plot various PDFs from the logistic distribution
     x = -5:0.01:20;
     y1 = logipdf (x, 5, 2);
     y2 = logipdf (x, 9, 3);
     y3 = logipdf (x, 9, 4);
     y4 = logipdf (x, 6, 2);
     y5 = logipdf (x, 2, 1);
     plot (x, y1, "-b", x, y2, "-g", x, y3, "-r", x, y4, "-c", x, y5, "-m")
     grid on
     ylim ([0, 0.3])
     legend ({"μ = 5, σ = 2", "μ = 9, σ = 3", "μ = 9, σ = 4", ...
              "μ = 6, σ = 2", "μ = 2, σ = 1"}, "location", "northeast")
     title ("Logistic PDF")
     xlabel ("values in x")
     ylabel ("density")