tpdf

Compute Student t distribution probability density function values.

Syntax

d=tpdf(x,n)

Inputs

x
Values of the distribution random variable.
Type: double
Dimension: scalar | vector | matrix
n
Degrees of freedom.
Type: integer
Dimension: scalar | vector | matrix

Outputs

d
Probability density values.

Examples

Single value tpdf example:
x = 3;
n = 10;
d = tpdf(x,n)
d = 0.0114005
Vector tpdf example:
x = [1:1:7];
n = 10;
d = tpdf(x,n)
d = [Matrix] 1 x 7
0.230362 0.0611458 0.0114005 0.00203103 0.000396001 8.80851e-005 2.2407e-005