Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 83c11c90 authored by DIB Elian's avatar DIB Elian
Browse files

Fixed bug leading to misaligned values and labels

Position was updated after aligning values and then incorrectly used to align labels.
Now the position is updated after values are aligned.
Everything should work as expected provided input labels and values match each other.
parent acf5867c
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@ for lab = 1:numel(SR1Lab)
SR2Lab{lab}(SR2Lab{lab}==0) = nan;
end
[SR1Val,SR1Pos,SR2Val,SR2Pos] = SR.alignSR(SR1Val,SR1Pos,SR2Val,SR2Pos);
[SR1Lab, ~ ,SR2Lab, ~ ] = SR.alignSR(SR1Lab,SR1Pos,SR2Lab,SR2Pos);
[SR1Val, ~ ,SR2Val, ~ ] = SR.alignSR(SR1Val,SR1Pos,SR2Val,SR2Pos);
[SR1Lab,SR1Pos,SR2Lab,SR2Pos] = SR.alignSR(SR1Lab,SR1Pos,SR2Lab,SR2Pos);
for lab = 1:numel(SR1Lab)
SR1Lab{lab}(isnan(SR1Lab{lab})) = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment