minor fix AddMSLPort.m

pull/1/head v0.0.17
Sebastian Held 2011-01-03 11:03:20 +01:00
parent af4318ef7e
commit 58298e42d3
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ v3_stop(idx_prop) = meshlines(3);
idx = interp1( mesh{idx_width}, 1:numel(mesh{idx_width}), nstart(idx_width), 'nearest' );
i1_start(idx_width) = mesh{idx_width}(idx) - diff(mesh{idx_width}(idx-1:idx))/2;
idx = interp1( mesh{idx_height}, 1:numel(mesh{idx_height}), start(idx_height), 'nearest' );
i1_start(idx_height) = mesh{idx_height}(idx) - diff(mesh{idx_height}(idx-1:idx))/2;
i1_stop(idx_height) = mesh{idx_height}(idx) + diff(mesh{idx_height}(idx:idx+1))/2;
i1_start(idx_height) = mesh{idx_height}(idx-1) - diff(mesh{idx_height}(idx-2:idx-1))/2;
i1_stop(idx_height) = mesh{idx_height}(idx+1) + diff(mesh{idx_height}(idx+1:idx+2))/2;
i1_start(idx_prop) = sum(meshlines(1:2))/2;
i1_stop(idx_prop) = i1_start(idx_prop);
idx = interp1( mesh{idx_width}, 1:numel(mesh{idx_width}), nstop(idx_width), 'nearest' );