Skip to content
Snippets Groups Projects
Commit b5cd96b3 authored by Peter Reischig's avatar Peter Reischig Committed by Nicola Vigano
Browse files

Bug fix of missing commas introduced when cleaning the code.

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@975 4c865b51-4357-4376-afb4-474e03ccb993
parent 4702321d
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ function distortion_createmap(inp, varargin) ...@@ -134,7 +134,7 @@ function distortion_createmap(inp, varargin)
end end
% Color limits for viewing % Color limits for viewing
limsh = pfSetColourLimits(inp, 5); limsh = gtSetColourLimits(inp, 5);
% else % else
% disp('First input argument has to be of type: numeric array or character.') % disp('First input argument has to be of type: numeric array or character.')
...@@ -980,7 +980,7 @@ function distortion_createmap(inp, varargin) ...@@ -980,7 +980,7 @@ function distortion_createmap(inp, varargin)
if par.ManualNodes == true if par.ManualNodes == true
title('(De)select nodes to be used for splines...') title('(De)select nodes to be used for splines...')
drawnow drawnow
but = 1; but = 1;
range = (hor*hor')/9; range = (hor*hor')/9;
xlimo = get(a_dnc222, 'XLim'); xlimo = get(a_dnc222, 'XLim');
...@@ -990,7 +990,9 @@ function distortion_createmap(inp, varargin) ...@@ -990,7 +990,9 @@ function distortion_createmap(inp, varargin)
while (but == 1 || but == 3) while (but == 1 || but == 3)
[ci, ri, but] = ginput(1); [ci, ri, but] = ginput(1);
if ~isempty(ci) if isempty(ci)
but = 0;
else
[mindist, nodei] = min((nc2 - ci).^2 + (nc1 - ri).^2); [mindist, nodei] = min((nc2 - ci).^2 + (nc1 - ri).^2);
if but == 1 if but == 1
if mindist < range if mindist < range
...@@ -1772,7 +1774,7 @@ function mi = min2par(arg) ...@@ -1772,7 +1774,7 @@ function mi = min2par(arg)
c = X(:); c = X(:);
xt = quad2func(r, c); xt = quad2func(r, c);
a = xt\arg(:); a = xt\arg(:);
mi = [ - a(2) - a(3)]/[2*a(5) a(4);a(4) 2*a(6)]; mi = [-a(2) -a(3)]/[2*a(5) a(4);a(4) 2*a(6)];
end end
% function mi = min2par(arg) % function mi = min2par(arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment