Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Assignment:

1. Complete the code for arbitrary, A, ωet, and N (i.e. the values of A, and N are entered ea the first 3 lines of the code).

2. Test when A = 1 and = 0 for N=10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, and 100000. What does this say about N?

3. Rerun part 2 when ,ωet = .1, 1, 10 and 100. Are your results what you expect? Why or why not?

4. You can also nee this method to calculate the autocorrelation function, Rx(t1,t2). Let

Rx(t1,t2) = A cos2et1 + θ) cos(ωet2 +θ)

Modify your cede to calculate the autocorrelation. Test your modified code when A = 1, ωet1 = .1, and ωet2= .4 for N=10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000 and 100000. Compare your answer to the exact one, equation. Do they agree? Why or Why not?

The purpose of this assignment is to investigate a Monte Carlo type Simulation for an ensemble average.

We can perform a Mende Carlo simulation to calculate the ensemble average of a random process. Consider the Random Process as in Example

x(t) = A cos(ωet + θ)

where θ is a uniformly distributed random variable in the range (0, 2Π). To calculate the ensemble average x(t), we need to calculate a 1-dim array of uniformly distributed random variables θ, then calculate x(t) for each value and sum. If we generate enough variables, the sum will converge to the integral.

To generate a 1 dimensional array of uniformly distributed random num¬bum over the range (0,1) in Matlab use the rand(M,N) function which gen¬erates uniformly distributed random numbers.

For example, to generate 10000 uniformly distributed random numbers we can use

N=10000;
θ= rend(1,N) ;

To scale the random numbers from 0 to 2Π, just multiply by 2Π.

Then choose a value for ωet, then calculate the individual values of x(t) and sum (most likely using the same techniques as in the previous assignment) and divide by N.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M91521339
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in MATLAB

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As