% MATLAB script for Illustrative Problem 2.3.
echo on
rho=0.95;                             
X0=0;
N=1000;
X=gaus_mar(X0,rho,N);                 
M=50;
Rx=Rx_est(X,M);        figure;       
% Plotting commands follow.
subplot(2,1,1), 
        plot (X, 'DisplayName', 'X', 'YDataSource', 'X')
 subplot(2,1,2),plot (Rx,'r');

