Skip to content

Commit 89c1916

Browse files
committed
Address review comment
1 parent 84c10c9 commit 89c1916

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

utilities/plotting/alignALProfiles.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@
3434
for i = 1:numel(sldProfiles)
3535
lengths(i) = size(sldProfiles{i}, 1);
3636
end
37-
% Get max length and its index
38-
[maxLen, maxPos] = max(lengths);
39-
maxPos = maxPos(1);
40-
maxLen = maxLen (1);
4137

38+
% Get max length and its index
39+
[maxLen, maxPos] = max(lengths, [], "all");
4240
maxXValue = sldProfiles{maxPos}(end,1);
4341

4442
% Get the longest profile...

0 commit comments

Comments
 (0)