If you have ever wondered how a GPS knows exactly where you are even when the signal is noisy, or how a robot balances itself, the answer is likely the .
% State Vector [x; v] -> [Position; Velocity] % We assume the object starts at 0 with 0 velocity. x = [0; 0]; If you have ever wondered how a GPS
Are you going 50, 52, or something in between? or how a robot balances itself
% Control Input Matrix (External force: Gravity) % We know gravity pulls it down, so we account for it. B = [0.5*dt^2; dt]; u = g; % Input magnitude (acceleration) Are you going 50
Happy filtering!