From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 22/CH10/EX10.10/ch10ex10.sce | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '22/CH10/EX10.10/ch10ex10.sce') diff --git a/22/CH10/EX10.10/ch10ex10.sce b/22/CH10/EX10.10/ch10ex10.sce index ef4197be5..4c7c0cbdd 100755 --- a/22/CH10/EX10.10/ch10ex10.sce +++ b/22/CH10/EX10.10/ch10ex10.sce @@ -1,7 +1,8 @@ -A=[0 1;-2 -3]; -[V,lambda]=spec(A); -B=[1;2]; -Bhat=P*B -disp(P,"P=") -disp(Bhat,"B^=") +A=[0 1;-2 -3]; + P = [2 1; 1 1] +[V,lambda]=spec(A); +B=[1;2]; +Bhat=P*B +disp(P,"P=") +disp(Bhat,"B^=") disp(lambda,"lambda=") \ No newline at end of file -- cgit