mirror of
https://github.com/MillironX/beefblup.git
synced 2024-11-14 19:43:09 +00:00
9 lines
215 B
Mathematica
9 lines
215 B
Mathematica
|
% uniquenan
|
||
|
% Serves the same purpose as UNIQUE, but ensures any empty cells are not
|
||
|
% counted
|
||
|
function y = uniquecell(x)
|
||
|
y = unique(x);
|
||
|
if any(cellfun(@isempty, y))
|
||
|
y(cellfun(@isempty, y)) = [];
|
||
|
end
|
||
|
end
|