To design a Kalman filter for radar tracking without using built-in functions in MATLAB, you can follow these steps:
Define the state variables: In radar tracking, common state variables include the position, velocity, and acceleration of the tracked object. Let's denote them as x, v, and a respectively.
Initialize the state estimation: Assign initial values to the state variables. Initialize the state estimate covariance matrix, P, which represents the uncertainty of your initial estimate.
Define the system model: Create a matrix representation of the system equations that describe the motion of the tracked object. Typically, this involves using the kinematic equations to model the relationship between the state variables.
Define the measurement model: Create a matrix representation of the measurement equations that relate the state variables to the measurements obtained from the radar.
Specify the process and measurement noise covariance matrices: Determine the covariance matrices, Q and R, which represent the uncertainty and measurements noise respectively.
Start iterating for 100 consecutive tracking points: For each time step:
Here's some example code in MATLAB to help you understand the implementation:
main.m994 chars34 lines
Remember that this is just a basic implementation of the Kalman filter for radar tracking. You may need to modify it to fit your specific application and measurement model.
gistlibby LogSnag