Skip to content

Commit efcb2ef

Browse files
author
Merouane Atig
committed
Project data function
1 parent faa969e commit efcb2ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlclass-ex7/projectData.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
% projection_k = x' * U(:, k);
1919
%
2020

21-
21+
for i=1:size(X, 1)
22+
x = X(i, :)';
23+
Z(i, :) = x' * U(:, 1:K);
24+
end
2225

2326

2427
% =============================================================

0 commit comments

Comments
 (0)