Skip to content

Commit 5bb28aa

Browse files
1 parent 61008e2 commit 5bb28aa

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/subtri.m

+7-6
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,13 @@
176176

177177
if uniqueOpt
178178
%this is based on rounding to 6th signigicant digit to avoid this use the split method
179-
numKeep=6; %Number of significant digits to keep
180-
try
181-
[~,ind_uni_1,ind_uni_2]=unique(round(Vs,numKeep,'significant'),'rows');
182-
catch
183-
[~,ind_uni_1,ind_uni_2]=unique(sround(Vs,numKeep),'rows');
184-
end
179+
numKeep=5; %Number of significant digits to keep
180+
[~,ind_uni_1,ind_uni_2]=unique(pround(Vs,numKeep),'rows');
181+
% try
182+
% [~,ind_uni_1,ind_uni_2]=unique(round(Vs,numKeep,'significant'),'rows');
183+
% catch
184+
% [~,ind_uni_1,ind_uni_2]=unique(sround(Vs,numKeep),'rows');
185+
% end
185186
Vs=Vs(ind_uni_1,:);
186187
Fs=ind_uni_2(Fs);
187188
end

0 commit comments

Comments
 (0)