diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1055/CH23/EX23.3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1055/CH23/EX23.3')
-rwxr-xr-x | 1055/CH23/EX23.3/ch23_3.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1055/CH23/EX23.3/ch23_3.sce b/1055/CH23/EX23.3/ch23_3.sce new file mode 100755 index 000000000..de131b163 --- /dev/null +++ b/1055/CH23/EX23.3/ch23_3.sce @@ -0,0 +1,14 @@ +//Problem on State Estimator Linear Model
+
+clear
+clc;
+A=[-3.33 0;0 10;5 -5];
+R=[10^-4 0 0;0 10^-4 0;0 0 10^-4];
+O=inv(((A')*(inv(R))*(A)))*((A')*(inv(R))*[.12;.21;-.30]);//assuming theat matrix=0
+f12=-3.33*(O(1,1));
+f31=10*(O(2,1));
+f23=5*(O(1,1)-O(2,1));
+J=(((.12-f12)^2)+((.21-f31)^2)+((-.3-f23)^2))/(10^-4);
+disp(O,"O=");//Answer does not match due to difference in rounding off of digits
+disp(J,"J=");//Answer does not match due to difference in rounding off of digits
+
|