Dear colleagues,
Unfortunately, I don't have MATLAB and I don't know anything about it. Could someone please help me?
Given is the vector x0 = (1, 2, 3);
What does the following code return?
scalefactor = min(max(max(abs(x0)),1),10);
D0=eye(dim);
D0(dim+1,:)=(1-sqrt(dim+1))/dim*ones(1,dim);
For i=1:dim+1
X(i,:)=x0+ scalefactor*D0(i,:);
end;
What values do the matrices X and D0 have after calculation?
Many thanks in advance!
Kind regards,
Andreas