To talk on Icrontic, just register!

It only takes 30 seconds.

Have an account? Sign in:

Forgot?
aadesh
New to the neighborhood
aadesh
2 Posts

exponential distribution

I want to generate 52 exponential numbers whos mean is 22057 in matlab.. please help ASAP...
thank u


shwaip
elaborate bot
shwaip
5,729 Posts
you can generate an exponential RV with mean M by doing the following:


Code:
uni = rand(1,52);
ex = -log(uni)/M;
__________________ my photostream for ic photography challenge

Anyone who wants dropbox, please use my referral link
aadesh
New to the neighborhood
aadesh
2 Posts
Dint actually get it.... i copied and pasted it but Matlab dint do anything.. there a full possibility that i did it wrong since i am a newbie at using the software. please if you can explain in detail...
wht i did was i copied the code
n just changed m in it...

you can generate an exponential RV with mean M by doing the following:


Code:
uni = rand(1,52);
ex = -log(uni)/M;
shwaip
elaborate bot
shwaip
5,729 Posts
the variable ex is now an iid exponential random variable with mean 1/M. with 52 draws from it.
Similar Threads
Thread Thread Starter Forum Replies Last Post
Valve wins the internet (Distribution) Thrax Technology Articles 11 7 Aug 2007 12:26pm
Software Distribution cjkitti Resolved / Inactive 1 30 Oct 2004 11:02pm
best distribution for novice? astroworp Operating Systems 11 24 May 2004 4:29pm
Major power outage in Northeast? kanezfan General Banter 43 18 Aug 2003 5:02am

Go Back   Icrontic Forums > Tech: Software > General Software > Matlab Help
Jump to
This Thread Search this Thread
Search this Thread:

Advanced Search


Current time: 12:46pm (GMT)
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Get Vanilla instead. Trust me.