Generation of random number given the pmf
by Furlan
06 Feb 2010
(Updated 09 Feb 2010)
n=rand_gen(x,pmf,N)
Generates a random signal n oh length N from a desird pmf.
|
Watch this File
|
| File Information |
| Description |
n=rand_gen(x,pmf,N)
esample :
x=[1,3,4] : set of variables
pmf=[1/3,1/3,1/3] : [rpbability of each variable of x
N=100 : number of samples of the random signal
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 08 Feb 2010 |
1) Eliminated the cycle for (vectorial engine now)
2) Added the help |
| 08 Feb 2010 |
1)Vectorial engine
2) added the help |
| 09 Feb 2010 |
Eliminated the check sum(pmf)==1 |
|
Contact us at files@mathworks.com