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

  Use the definition for the laplacian in the discrete case

Show that subtracting the Laplacian from an image is proportional to unsharp masking. Use the definition for the Laplacian in the discrete case to derive the equivalence relation, constant weighting factors should not affect your conclusion.

  Step response of the position servo system

Use MATLAB to plot the step response of the position servo system for values of the gain K=0.5, 1.0, 2.0 below is possible data code

  Estimate the numerical wave speed

Scheme and try a couple of values for α, one close to 1 and the other not. Convince yourself that a smaller Δt is not necessarily a better choice.

  Write a function called crazygrade

Write a function called CrazyGrade that will take in the string and flip the grades according to the specifications - Define the inputs and outputs to each problem

  Using matlab draw an open-loop bode diagram and find the

an armature-control dc motor is used in a position control system. the transfer functions of the controller and process

  Construct a matlab simulation of pulse sampling

Construct a Matlab simulation of pulse sampling and sample & hold for m(t) = cos(2t) andfs = 10.

  Considering the integral

Using the code, generate the first 40 terms: show the result using the format long e. Comment about your results.

  The power input p to a centrifugal pump is assumed to be a

the power input p to a centrifugal pump is assumed to be a function of the volume flow rate q impeller diameter d

  How spectrograms can be used in non-stationary signals

Use calculations and/or your conceptual understanding of spectra to predict what you'd expect the spectrum of this signal to look like. Confirm this hypothesis by again using fft() in MATLAB to plot the actual spectrum. If MATLAB differs from your..

  Program that gets 10 numbers and stores then in an array

Write a program for a child's rectangle play yard is to be built next to the house. To make the three sides of the play-pen, twenty-four meters of fencing are available.

  Construct a commutated dc motor to drive a load

Construct a commutated DC motor to drive a load, simulated by a generator placed on the output shaft of your motor. You may use any readily available materials - characteristic for the different field densities created by the different permanent ma..

  Secant method to tryt to find out the root

create a function that will use the secant method to tryt to find out the root

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