| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
| On this page… |
|---|
The uniform cdf is
![]()
The uniform distribution (also called rectangular) has a constant pdf between its two parameters a (the minimum) and b (the maximum). The standard uniform distribution (a = 0 and b = 1) is a special case of the beta distribution, obtained by setting both of its parameters to 1.
The uniform distribution is appropriate for representing the distribution of round-off errors in values tabulated to a particular number of decimal places.
The sample minimum and maximum are the MLEs of a and b respectively.
The example illustrates the inversion method for generating normal random numbers using rand and norminv. Note that the MATLAB function, randn, does not use inversion since it is not efficient for this case.
u = rand(1000,1); x = norminv(u,0,1); hist(x)

Continuous Distributions (Data)
![]() | t Location-Scale Distribution | Uniform Distribution (Discrete) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |