The standard Kalman filter assumes:

%% 1. Simulation Parameters dt = 0.1; % Time step (seconds) T = 10; % Total time (seconds) t = 0:dt:T; % Time vector N = length(t);

This cycle repeats every time a new measurement arrives.

This example shows how the filter becomes more confident over time.