summaryrefslogtreecommitdiff
path: root/70/CH5/EX5.1.2/5_1_2.sci
diff options
context:
space:
mode:
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