From d6a44d9bb862df60acdb1430cde26985323f3f3a Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Tue, 1 Nov 2011 16:49:11 +0100 Subject: [PATCH] Cleanup / comments --- src/curve.m | 5 ++--- src/zigzag.m | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/curve.m b/src/curve.m index 69c90ccb..9af2130f 100644 --- a/src/curve.m +++ b/src/curve.m @@ -13,7 +13,7 @@ b=[ 1 2.5 ]; -func = 'S'; % steepFunctionNonsmooth +func = 'S'; % slope 1/100 x = -.1:.005:.4; y = .9:.005:1.1; @@ -39,8 +39,7 @@ diffs = zeros(steps, 2); vecs(1,:) = [0; 0]; % So that we can always calculate a difference vecs(2,:) = [0; 1]; % Start -for j = 2:steps+1 % Something random - % Zero is code for 'SteepFunctionNonsmooth' +for j = 2:steps+1 vecs(j+1,:) = duneminimise(A,b,func,vecs(j,:)); diffs(j,:) = vecs(j+1,:) - vecs(j,:); line([vecs(j,1) vecs(j+1,1)], ... diff --git a/src/zigzag.m b/src/zigzag.m index 13f2b54c..28e75be1 100644 --- a/src/zigzag.m +++ b/src/zigzag.m @@ -13,7 +13,7 @@ b=[ 1 2 ]; -func = 's'; % sampleFunction +func = 's'; % slope 1/2 x = -50:1:300; y = -125:1:50; @@ -39,8 +39,7 @@ diffs = zeros(steps, 2); vecs(1,:) = [ 0; 0]; % So that we can always calculate a difference vecs(2,:) = [279; 0]; % Start -for j = 2:steps+1 % Something random - % One is code for 'SampleFunction' +for j = 2:steps+1 vecs(j+1,:) = duneminimise(A,b,func,vecs(j,:)); diffs(j,:) = vecs(j+1,:) - vecs(j,:); line([vecs(j,1) vecs(j+1,1)], ... -- GitLab