summaryrefslogtreecommitdiff
path: root/70/CH5/EX5.1.2/5_1_2.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /70/CH5/EX5.1.2/5_1_2.sci
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 '70/CH5/EX5.1.2/5_1_2.sci')
-rwxr-xr-x70/CH5/EX5.1.2/5_1_2.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/70/CH5/EX5.1.2/5_1_2.sci b/70/CH5/EX5.1.2/5_1_2.sci
new file mode 100755
index 000000000..1660fc20f
--- /dev/null
+++ b/70/CH5/EX5.1.2/5_1_2.sci
@@ -0,0 +1,13 @@
+//page 238
+clear;
+close;
+clc;
+disp('The eigen values of a projection matrix are 1 or 0.')
+P=[1/2 1/2;1/2 1/2];
+eig=spec(P);
+[V,Val]=spec(P);
+disp(eig,'Eigen values:')
+x1=V(:,1);
+x2=V(:,2);
+disp(x1,x2,'Eigen vectors:');
+//end \ No newline at end of file