Question

matlab

Problem 6: The Matlab command randn(m,n) produces an m x n matrix of random numbers that are a realization of a white random process with some probability density function. Moreover, the Matlab command rand(m,n) produces an mxn matrix of random numbers between 0 and 1 that are a realization of a white random process with some probability density function. a) Use Matlab to do the following steps: 1) Let u-randn (10000,1); and plot u. 2) Use the command mean(u) to find the mean of u. 3) Use the command mean(u. 2) to find the variance of u 4) Use the command histogram(u) to plot the histogram of u, which can be considered as an approximation of the probability density function of the random process. What do you think is the type of the probability density function?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Intitled 지 +1 disp (al answer---plot of u) u-randn (10000,1); plot (u) disp (mean of u answer of question a2) mean (u)>disp (al answer u-randn (10000, 1); plot (u) al answer---plot of u >disp (mean of u answer of question a2) mean (u) meanPLOT of u

0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000

Histogram

800 700 600 500 400 300 200 100 -3 -2 2

So its a Normal type of probability density function as its shape is bell shape like in normal distribution.

Add a comment
Know the answer?
Add Answer to:
matlab Problem 6: The Matlab command 'randn(m,n) produces an m x n matrix of random numbers...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Generate N binary random variables Xi, i E {1,2,.., N] where X 1 or -1 with equal probability in ...

    Generate N binary random variables Xi, i E {1,2,.., N] where X 1 or -1 with equal probability in Matlab using rand or randn. According to central limit theorem, i= 1 should follow normal distribution when N is large. (1) Please plot the theoretical pdf of normal distribution (2) Please estimate the pdf of Vv by generating a lot of instances of Vv (hint: use hist command to get histogram then scaleit) (3) Please plot the theoretical pdf and the...

  • The probability density function (pdf) of a Gaussian random variable is: where μ s the mean...

    The probability density function (pdf) of a Gaussian random variable is: where μ s the mean of the random va nable, and σ is the standard deviation . (1) Please plot the pdf of a Gaussian random variable (the height of an average person in Miami valley) in Matlab, if we know the mean is 5 feet 9 inches, and the standard deviation is 3 inches (2) Please generate a large number of instances of such a Gaussian random variable...

  • Problem 6) Use Matlab to perform the followings experiments: a) Use command randi to randomly generate...

    Problem 6) Use Matlab to perform the followings experiments: a) Use command randi to randomly generate 25 integer numbers between 50 and 100 b) Use commands histogram to plot and command histcounts to count the number of numbers generated in part (a) in bins of length 10. That is plot and count the total number of numbers generated between 50 and 60, 60 and 70, and so on. c) Use the combination of commands rand and round to redo part...

  • MATLAB HELP!!! Recall that if A is an m × n matrix and B is a p × q matrix, then the product C = AB is defined if and on...

    MATLAB HELP!!! Recall that if A is an m × n matrix and B is a p × q matrix, then the product C = AB is defined if and only if n = p, in which case C is an m × q matrix. 5. Recall that if A is an mx n matrix and B is a px q matrix, then the product C-AB is defined if and only if n = p, in which case C is...

  • Instructions: If you require uniformly distributed random numbers in [0, 1], use Matlab’s built i...

    Instructions: If you require uniformly distributed random numbers in [0, 1], use Matlab’s built in uniform random number generator rand. Also, you may NOT use any Matlab built-in functions that explicitly perform the task asked for in the problem. Problem 6. Let α > 0 and set f(x)- ae-ale, for x e(-oo, oo). (a) Make a plot of f (b) Show that f is a probability density function (Hint: -, when z S 0, and x-r, when 0.) (c) If...

  • We will be using Matlab as the software tool for this lab project. 1.Explore and become...

    We will be using Matlab as the software tool for this lab project. 1.Explore and become familiar with the random number generators in Matlab such as “rand”, “randn”, and “randi” (in fact all software tools can only generate pseudo-random numbers). Notice that to randomize the generators the use of “rng” function is encouraged as the previous techniques are discouraged. 2. “Random walk” is one of the primary and relative simple random processes in which the process starts from a neutral...

  • solve with only matlab, please. :) random 15.8 Ifr is a normal random number with mean...

    solve with only matlab, please. :) random 15.8 Ifr is a normal random number with mean 0 and variance 1 (as generated by randn), it can be transformed into a random number X with mean u and standard deviation a by the relation X=ar + In an experiment, a Geiger counter is used to count the radioactive emissions of cobalt 60 over a 10-second period. After a large number of such readings are taken, the count rate is estimated to...

  • 3. Random matrices are matrix generalization of random variables. To examine the distribution of eigenvalues of...

    3. Random matrices are matrix generalization of random variables. To examine the distribution of eigenvalues of such matrices, first generate a 100x100 random matrix with elements selected from a random distribution of ones and zeros (to do this you can start with the function rand( ) together with round( ) or alternatively randi( )) and then find the absolute value (the norm) of each the eigenvalues of this matrix with the routine eig。 Repeat this 100 times storing all the...

  • Instructions: If you require uniformly distributed random numbers in [0, 1], use Matlab’s built i...

    Instructions: If you require uniformly distributed random numbers in [0, 1], use Matlab’s built in uniform random number generator rand. Also, you may NOT use any Matlab built-in functions that explicitly perform the task asked for in the problem. Problem 6. Let a > 0 and set f(x)for E (-00, oo). (a) Make a plot off (b) Show that f is a probability density function (Hint: -x, when r s 0, and lrlr, when r 2 0.) (c) If X...

  • Problem 3 In this problem you add some random noise to the sine function and then...

    Problem 3 In this problem you add some random noise to the sine function and then calculate the derivative. • First, generate a vector (the same length as x, above) which consists of random numbers in the range (-0.02) to (0.02). Use the MATLAB function rand. rand will return a random number between 0 and 1. For this problem, you actually need random numbers between +/- 0.02. How will you convert the random numbers you obtain from rand to be...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT