Skip to content

Commit 86a3ffd

Browse files
automatically synchronized identical files to 43836a0
1 parent 43836a0 commit 86a3ffd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fileio/private/pos2dim.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
[tmp, ind] = max(dpos,[],2);
2929
dim(1) = find(tmp>1.5,1,'first');
3030
dpos = dpos(dim:dim:npos-1,:);
31-
[tmp, ind] = max(dpos(:,setdiff(1:3, ind(dim))),[],2);
31+
[tmp, ind] = max(dpos(:,setdiff(1:3, ind(dim(1)))),[],2);
3232
dim(2) = find(tmp>1.1*min(tmp),1,'first'); % this threshold seems to work on what I tried out
33-
dim(3) = npos./prod(dim);
33+
dim(3) = npos./prod(dim(1:2));
3434

utilities/private/pos2dim.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
[tmp, ind] = max(dpos,[],2);
2929
dim(1) = find(tmp>1.5,1,'first');
3030
dpos = dpos(dim:dim:npos-1,:);
31-
[tmp, ind] = max(dpos(:,setdiff(1:3, ind(dim))),[],2);
31+
[tmp, ind] = max(dpos(:,setdiff(1:3, ind(dim(1)))),[],2);
3232
dim(2) = find(tmp>1.1*min(tmp),1,'first'); % this threshold seems to work on what I tried out
33-
dim(3) = npos./prod(dim);
33+
dim(3) = npos./prod(dim(1:2));
3434

0 commit comments

Comments
 (0)