Skip to content
Snippets Groups Projects
Commit 6cb849fb authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Cleanup

parent 5c030b17
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,8 @@ close all
x = (-200:2:300);
y = (-200:2:300)';
v = ones(length(x),1);
X = v * x;
Y = y * v';
X = repmat(x, length(x), 1);
Y = repmat(y, 1, length(y));
for i=1:length(x)
for j=1:length(y)
......@@ -20,11 +19,11 @@ axis([-10, 10, -10, 10]);
surf(x, y, f)
hold on;
oldvec = [279; 0];
oldvec = [279; 0]; # Something random that takes a couple of iterations
olddiff = [ 0; 0];
for i=1:10
newdiff=duneminimise(oldvec);
for i = 1:10 # Something random
newdiff = duneminimise(oldvec);
newvec = oldvec + newdiff;
line([oldvec(1) newvec(1)], ...
[oldvec(2) newvec(2)], ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment