@ -14,11 +14,9 @@ X_poly = zeros(numel(X), p);
% column of X contains the values of X to the p-th power.
%
for i = 1 : p
X_poly(:,i) = X .^ i;
end
% =========================================================================