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
Branches
No related tags found
No related merge requests found
...@@ -5,9 +5,8 @@ close all ...@@ -5,9 +5,8 @@ close all
x = (-200:2:300); x = (-200:2:300);
y = (-200:2:300)'; y = (-200:2:300)';
v = ones(length(x),1); X = repmat(x, length(x), 1);
X = v * x; Y = repmat(y, 1, length(y));
Y = y * v';
for i=1:length(x) for i=1:length(x)
for j=1:length(y) for j=1:length(y)
...@@ -20,11 +19,11 @@ axis([-10, 10, -10, 10]); ...@@ -20,11 +19,11 @@ axis([-10, 10, -10, 10]);
surf(x, y, f) surf(x, y, f)
hold on; hold on;
oldvec = [279; 0]; oldvec = [279; 0]; # Something random that takes a couple of iterations
olddiff = [ 0; 0]; olddiff = [ 0; 0];
for i=1:10 for i = 1:10 # Something random
newdiff=duneminimise(oldvec); newdiff = duneminimise(oldvec);
newvec = oldvec + newdiff; newvec = oldvec + newdiff;
line([oldvec(1) newvec(1)], ... line([oldvec(1) newvec(1)], ...
[oldvec(2) newvec(2)], ... [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