This preview shows page 1. Sign up to view the full content.
Unformatted text preview: K ThetaHat = ThetaHat + K*(yk - H*ThetaHat); P = (P - K*H*P)/Lamda; P % Check on the bounds of parameters so that the estimated values are not ridiculous a1 = ThetaHat(1); a2 = ThetaHat(2); b0 = ThetaHat(3); b1 = ThetaHat(4); c = ThetaHat(5); %if (a1 < -2) | (a1 > -1), a1 = -2; end; %if (a2 > 1) | (a2 < a1-1) | (a2 < -a1-1), a2 = 0.5; end; if (a1 < -2.0), a1 = -1.0; end; i ThetaHat = [a1; a2; b0; b1; c]; T Out = [ThetaHat; P(:,1); P(:,2); P(:,3); P(:,4); P(:,5)];...
View Full Document
This note was uploaded on 04/17/2011 for the course SYS 635 taught by Professor Re during the Spring '11 term at Albany College of Pharmacy and Health Sciences.
- Spring '11