image thumbnail

rand_extended computes a random number in the interval [a,b]

version 1.0.0.0 (1.34 KB) by Nassim Khaled
rand_extended computes a random number in the interval [a,b]

202 Downloads

Updated 01 Jul 2011

View License

rand_extended computes a random number in the interval [a,b]
It is basically an extended version of the command rand
Inputs:
a: the lower bound of the interval
b: the upper bound of the interval
m,n(optional): dimensions of the matrix of random numbers
to be generated
Outputs:
M: random number/matrix in the interval [a,b]

Cite As

Nassim Khaled (2021). rand_extended computes a random number in the interval [a,b] (https://www.mathworks.com/matlabcentral/fileexchange/32023-rand_extended-computes-a-random-number-in-the-interval-a-b), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!