### Function Reference: `nakapdf`

statistics: y = nakapdf (x, mu, omega)

Nakagami probability density function (PDF).

For each element of x, compute the probability density function (PDF) of the Nakagami distribution with shape parameter mu and spread parameter omega. The size of y is the common size of x, mu, and omega. A scalar input functions as a constant matrix of the same size as the other inputs.

Both parameters must be positive reals and `mu >= 0.5`. For `mu < 0.5` or `omega <= 0`, `NaN` is returned.

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

See also: nakacdf, nakapdf, nakarnd, nakafit, nakalike, nakastat

Source Code: nakapdf

### Example: 1

     ## Plot various PDFs from the Nakagami distribution
     x = 0:0.01:3;
     y1 = nakapdf (x, 0.5, 1);
     y2 = nakapdf (x, 1, 1);
     y3 = nakapdf (x, 1, 2);
     y4 = nakapdf (x, 1, 3);
     y5 = nakapdf (x, 2, 1);
     y6 = nakapdf (x, 2, 2);
     y7 = nakapdf (x, 5, 1);
     plot (x, y1, "-r", x, y2, "-g", x, y3, "-y", x, y4, "-m", ...
           x, y5, "-k", x, y6, "-b", x, y7, "-c")
     grid on
     xlim ([0, 3])
     ylim ([0, 2])
     legend ({"μ = 0.5, ω = 1", "μ = 1, ω = 1", "μ = 1, ω = 2", ...
              "μ = 1, ω = 3", "μ = 2, ω = 1", "μ = 2, ω = 2", ...
              "μ = 5, ω = 1"}, "location", "northeast")
     title ("Nakagami PDF")
     xlabel ("values in x")
     ylabel ("density")