Dynamic-Calibration/utils/YALMIP-master/extras/uniquestripped.m

10 lines
169 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function b = uniquestripped(a)
%UNIQUESTRIPPED Internal function (version without checkings etc.)
b = sort(a(:)');
i = diff([b NaN])~=0;
if ~all(i)
b = b(i);
end