summaryrefslogtreecommitdiff
path: root/291/CH9/EX9.2a/eg9_2a.sce
diff options
context:
space:
mode:
Diffstat (limited to '291/CH9/EX9.2a/eg9_2a.sce')
-rwxr-xr-x291/CH9/EX9.2a/eg9_2a.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/291/CH9/EX9.2a/eg9_2a.sce b/291/CH9/EX9.2a/eg9_2a.sce
new file mode 100755
index 000000000..ff3501fdf
--- /dev/null
+++ b/291/CH9/EX9.2a/eg9_2a.sce
@@ -0,0 +1,9 @@
+A = [46 53 29 61 36 39 47 49 52 38 55 32 57 54 44];
+B = [12 15 7 17 10 11 11 12 14 9 16 8 18 14 12];
+plot2d(A, B, -1);
+[X, Y] = reglin(A, B);
+//disp(X);
+//disp(Y);
+p = 0 : 0.1: 65;
+q = p.*X + Y
+plot2d(p, q, 2); \ No newline at end of file