-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated function header and REREADME, changed EXAMPLES script into a …
…live script, and deleted unnecessary documentation.
- Loading branch information
Showing
6 changed files
with
65 additions
and
106 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# `rand2` [![View Random Number Generator in a Range (rand2) on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/85423-random-number-generator-in-a-range-rand2) | ||
|
||
Generates a matrix of random numbers between specified lower and upper bounds. | ||
|
||
|
||
## Syntax | ||
|
||
`X = rand2(a,b)`\ | ||
`X = rand2(a,b,[],type)`\ | ||
`X = rand2(a,b,[m,n])`\ | ||
`X = rand2(a,b,[m,n],type)` | ||
|
||
|
||
## Description | ||
|
||
`X = rand2(a,b)` returns one random double-precision floating-point number `X` between `a` and `b`. | ||
|
||
`X = rand2(a,b,[],typename)` returns one random number `X` of data type `type` between `a` and `b`. Options for `type` are `'int'` (integers), `'single'` (single-precision floating point numbers), or `'double'` (double-precision floating point numbers). | ||
|
||
`X = rand2(a,b,[m,n])` returns an `m`-by-`n` matrix `X` of random double-precision floating-point numbers between `a` and `b` | ||
|
||
`X = rand2(a,b,[m,n],typename)` returns an `m`-by-`n` matrix `X` of random numbers of data type `type`. Options for `type` are `'int'` (integers), `'single'` (single-precision floating point numbers), or `'double'` (double-precision floating point numbers). | ||
|
||
|
||
|
||
## Examples | ||
|
||
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters