creating a vector of independent random cauchy variables...
1 view (last 30 days)
Show older comments
I would like to create a "1000000 length" vector of cauchy random variables...
The code for one cauchy random variable, x, is:
x= tan(pi*(rand-0.5))
I have a few ways I can think of for generating the vector, but I want the FASTEST computational way.
Thanks
D Howard
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!