Exercises for system-id.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
208 B

% Ridge regression
load('./SysID_Exercise_1.mat')
w = [x.' ; 2.*x.'.^2-1].';
u = [1; 0.4];
sigma_p = 0.01;
sigma = 0.1;
theta = inv(1/sigma * w.' * w + 1/sigma_p*eye(2)) * (1/sigma*w.'*(y-0.2)+u/sigma_p)