From 9147eeffc8935a22d754944611cabd82bb90c295 Mon Sep 17 00:00:00 2001 From: sigpro Date: Tue, 20 Nov 2012 21:15:43 +0800 Subject: [PATCH] change 2 files --- ex7/projectData.m | 2 ++ ex7/recoverData.m | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ex7/projectData.m b/ex7/projectData.m index d31509d..5da3e97 100644 --- a/ex7/projectData.m +++ b/ex7/projectData.m @@ -18,6 +18,8 @@ % projection_k = x' * U(:, k); % + + Z = X * U(:, 1:K); diff --git a/ex7/recoverData.m b/ex7/recoverData.m index da277f5..452129e 100644 --- a/ex7/recoverData.m +++ b/ex7/recoverData.m @@ -21,7 +21,7 @@ % Notice that U(j, 1:K) is a row vector. % - +X_rec = Z * U(:, 1:K)' ; % =============================================================