Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9045341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:16:37+00:00 2026-06-16T11:16:37+00:00

Using MATLAB, you have to start with a uniform distribution between (0,1). You need

  • 0

Using MATLAB, you have to start with a uniform distribution between (0,1). You need to generate the following sequences of random variables:

1.Rayleigh distributed random variable. (a=0, b=1).

2.Exponentially R.V. (a=0, b=1)

3.Gaussian R.V. (a=0, (σX)=2)


At least, give me a MATLAB code of the first one.

I tired many time to solve it using this equation: enter image description here

but it didn’t work with me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:16:38+00:00Added an answer on June 16, 2026 at 11:16 am

    Here are the formulas, it’s easy to implement them in Matlab:

    1. Generating Rayleigh-distributed random variates
    2. Generating exponential variates
    3. Generating values from Gaussian distribution

    The first two methods are based on Inverse Transform Sampling. In the third case, the CDF cannot be inverted analytically, so ITS doesn’t work, and special techniques are needed.

    EDIT

    Example (Rayleigh):

    n = 10000; % number of variates
    u = rand(n, 1); % generating uniform variates
    sigma = 1; % the parameter
    x = sigma * sqrt(-2 * log(u)); % generating Rayleigh-distributed variates
    hist(x, 50); % histogram
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using matlab's randn function to generate random random numbers from a standard
I have some differential equations that I need to solve using MATLAB's ODE solvers.
How can I generate a set of image projections using MATLAB ? I have
I am using Matlab, and I have a 1x200 vector of numbers. I need
Using MATLAB, I have this code: value = input('>> Enter a value: '); and
I have been using Matlab 2011b and contourf/contourfm to plot 2D data on a
I have an assignment to create a GUI using MATLAB GUIDE and am having
I have been given some matlab code compiled using the .net compiler. I can
I have some data generated in MATLAB that I want to process using Perl.
I have Matlab .m script that sets and trains Neural network (nn) using Matlab's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.