File Exchange

image thumbnail

RANDOM

version 1.0 (2.8 KB) by

Uniformly distributed random numbers on a non-continuous domain defined by several intervals.

2 Downloads

Updated

No License

RANDOM takes the advantage of RAND basic function to generate random entries, chosen from a uniform distribution on the non-continuous domain defined by several intervals.

RANDOM with no input arguments is the same as RAND.

RANDOM(D) generates one random number on the domain D, where D is (Nx2)-real matrix defining N non-intersected intervals.

RANDOM(D, N) is an N-by-N matrix with random entries, chosen from a uniform distribution on the domain defined by D.

RANDOM(D,M,N) and RANDOM(D, [M,N]) are M-by-N matrices with random entries on the domain defined by D.

RANDOM(D,M,N,P,...) or RANDOM(D,[M,N,P,...]) generate random arrays on the domain defined by D.

Comments and Ratings (1)

Kostas Nadima

Very nice to find it when you need it...
Thanks a lot!

Updates

A little bit different more effective implementation improving the runtime of the proposed uniform generator is found.

MATLAB Release
MATLAB 6.0 (R12)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video