Generate a uniform distribution of random numbers on a specified interval [a,b]. To do this, multiply the output of rand by (b-a) then add a.

x = a + (b-a) * rand(5)

## Sunday, November 20, 2005

### MATLAB:Generate a uniform distribution of random number

Subscribe to:
Post Comments (Atom)

## No comments:

## Post a Comment