How can I delete repeated elements? (not unique!)
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
更多回答(2 个)
Joakim Magnusson
2014-8-13
I don't know such a function, but try this:
Output = Input;
0 = 1;
while i < size(Output,2)
if Output(i) == Output(i+1)
Output(i+1) = [];
else
i = i+1;
end
end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!