summaryrefslogtreecommitdiff
path: root/243/CH10/EX10.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /243/CH10/EX10.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '243/CH10/EX10.5')
-rwxr-xr-x243/CH10/EX10.5/10_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/243/CH10/EX10.5/10_5.sce b/243/CH10/EX10.5/10_5.sce
new file mode 100755
index 000000000..578cc3880
--- /dev/null
+++ b/243/CH10/EX10.5/10_5.sce
@@ -0,0 +1,18 @@
+//Example No. 10_05
+//Plane Fitting
+//Pg No. 342
+clear ; close ; clc ;
+
+x = 1:4
+z = 0:3
+y = 12:6:30
+n = length(x) //Number of data points
+m = 3 //Number of unknowns
+G = [ ones(1,n) ; x ; z]
+H = G'
+C = G*H
+B = y*H
+D = C\B'
+disp(C,B)
+disp(D)
+mprintf('\n The regression plane is \n y = %i + %f*x + %i*z ',D(1),D(2),D(3)) \ No newline at end of file