Write a matlab program to compute the kalman gain

Assignment Help MATLAB Programming
Reference no: EM131210622

Problem -

The state estimation equation in the discrete Kalman filter is

x^(n|n) = A(n - 1)x^(n - 1|n - 1) + K(n)[y(n) - C(n)A(n - 1)x^(n - 1|n - 1)]

Thus, given the state transition matrix A(n) and the observation matrix C(n), all that is required is the Kalman gain K(n). Since the Kalman gain does not depend upon the state x(n) or the observations y(n), the Kalman gain may be computed off-line prior to filtering.

(a) Write a MATLAB program gain.m to compute the Kalman gain K(n) for a stationary process with

x(n) = Ax(n - 1) + w(n)

y(n) = Cx(n) + v(n)

(b) Suppose that x(n) is a third-order autoregressive process

x(n) = -0.1x(n - 1) - 0.09x(n - 2) + 0.6413x(n - 3) + w(n)

where w(n) is unit variance white noise, and that the observations are

y(n) = x(n) + v(n)

where v(n) is white noise with a variance σv2 = 0.64. What initialization should you use for P(0|0)? Using this initialization, find the Kalman gain K(n) for n = 0 to n = 10.

(c) What is the steady-state value for the Kalman gain? How is it affected by the initialization P(0|0)?

(d) Generate the processes x(n) and y(n) in part (b) and use your Kalman filter to estimate x(n) from y(n). Plot your estimate and compare it to x(n).

Reference no: EM131210622

Questions Cloud

Create a new project named intermediate22 project : If necessary, create a new project named Intermediate22 Project. Enter your C++ instructions into a source fi le named Intermediate22.cpp. Also enter appropriate comments and any additional instructions required by the compiler.
Opportunity cost of attending the concert equals : Carl is considering attending a concert with a ticket price of $35. He estimates that the cost of driving to the concert and parking there will total an additional $20. In order to attend the concert, Carl will have to take time off from his part-..
After-tax holding-period return on the bond : a . Find the holding-period return for a 1-year investment period if the bond is selling at a yield to maturity of 6% by the end of the year. b. If you sell the bond after 1 year, what taxes will you owe if the tax rate on interest income is 35% ..
Discuss the elements of a good fraud report : What does it mean to create a "Culture of Honesty, Openness, and Assistance?" Give an example from an organization with which you have been affiliated.
Write a matlab program to compute the kalman gain : Write a MATLAB program gain.m to compute the Kalman gain K(n) for a stationary process with: x(n) = Ax(n - 1) + w(n)
Compounds the interest in daily basis : Suppose you borrow$10,000 for 1 year on your Visa at an annual interest rate of 25%. What effective annual yield (in percent) will you actually end up paying if Visa compounds the interest in daily basis?
Evaluate how your chosen aspect of diversity : Evaluate how your chosen aspect of diversity, in combination with two other aspects of diversity, can lead to increased needs or issues. For example, if someone is female, African American, and lesbian, will there be additional challenges? Select ..
What is the company asset beta : Johnson company has an equity beta of 1.5, the risk-free rate of return is 3.0 percent, the market return is 14.7 percent, and the pretax cost of debt is 9.4 percent. The debt-equity ratio is .47. If you apply the common beta assumptions, what is ..
Review the accounting treatment and prepare the report : Review the accounting treatment and prepare the report.- Report should be in letter format. -

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Compute and flote 4 average temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Compute and plot 4 mean temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Find the mean value and standard deviation of total gravity

plot the total gravity effect of the 5 cylinders by summing their effects at each observation point on the profile.   What is the mean value and standard deviation of the total gravity effect

  Set up a quadratic optimization problem

Set up a quadratic optimization problem that will determine the best investment mix and solve the problem using the MATLAB quadratic optimization routine quadprog. Interpret your results.

  Write a matlab script m-file to play a guessing game the

write a matlab script m-file to play a guessing game. the user will try to guess a number between 1 and 100. your

  Compute the term structure of interest rates

Plot the term structure of interest rates - remember that the y(t, T) = -1/T-t log P(t, T). Describe the term structure and Compute the term structure of interest rates with the value of ro= 0.17. What is the difference between the two term structur..

  Program the rank order cluster algorithm with a matrix

Program the rank order cluster algorithm with a matrix with x rows and x columns in any plataform (that the person inputs). I prefer visual studio or visual basic

  Write a gui function that will display sliders

Write a GUI function that will display sliders - The wind chill factor measures how cold it feels with a given air temperature.

  Write compile and run a hello program

With these mechanical details mastered, everything else is comparatively easy - Write, compile and run a hello program.

  Determine the average heat transfer coefficients over l 2

water at an average temperature of 47 ordmc and with a flow rate of 0.02 kgs flows through a 2 cm diameter tube which

  Compute orientation of the principal axes of cross section

Compute the orientation of the principal axes of the cross section using the eigen- value solver in MATLAB (eig) on the moment of inertia matrix J. See the CP Notes for more information on this task.

  Compute the economy sized svd

Compute the economy sized SVD of the reshaped A matrix.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd