5.0

5.0 | 1 rating Rate this file 5 downloads (last 30 days) File Size: 2.8 KB File ID: #2848

RANDOM

by Alex Bar-Guy

 

12 Dec 2002 (Updated 29 Dec 2004)

No BSD License  

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

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
21 Mar 2004 Kostas Nadima

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

Please login to add a comment or rating.
Updates
02 Jan 2003

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

29 Dec 2004

Bug fix: Crash using RANDOM(D) was corrected

Tag Activity for this File
Tag Applied By Date/Time
statistics Alex Bar-Guy 22 Oct 2008 06:55:02
probability Alex Bar-Guy 22 Oct 2008 06:55:02
random Alex Bar-Guy 22 Oct 2008 06:55:02
pseudo Alex Bar-Guy 22 Oct 2008 06:55:02
generation Alex Bar-Guy 22 Oct 2008 06:55:02
uniform Alex Bar-Guy 22 Oct 2008 06:55:02
distribution Alex Bar-Guy 22 Oct 2008 06:55:02
generate Alex Bar-Guy 22 Oct 2008 06:55:02
effective Alex Bar-Guy 22 Oct 2008 06:55:02
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com