1
0
Fork 0

Recover data

This commit is contained in:
neingeist 2014-11-19 21:22:28 +01:00
parent 798f82ecc1
commit beb652a5be

View file

@ -21,7 +21,15 @@ X_rec = zeros(size(Z, 1), size(U, 1));
% Notice that U(j, 1:K) is a row vector.
%
U_reduce = U(:, 1:K);
for i = 1:size(Z, 1)
z = Z(i, :)';
x_rec = z' * U_reduce';
X_rec(i, :) = x_rec;
end
% =============================================================