Algorithm conversion to Matlab Code

3 views (last 30 days)
Mar One
Mar One on 21 May 2022
Answered: Walter Roberson on 22 May 2022
Hello, i have this ziggurat algorithm that i wish to convert to a matlab code if someone would know the correct matlab code for it

Answers (2)

Steven Lord
Steven Lord on 21 May 2022
See this post on Cleve Moler's blog.
  2 Comments
Walter Roberson
Walter Roberson on 22 May 2022
Calling randn() is the matlab code that implements the algorithm.

Sign in to comment.


Walter Roberson
Walter Roberson on 22 May 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by