How to replace multiple duplicate rows with single row?
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a table with a row containing multiple values, such as below.
0
10
10
10
10
10
14
6
10
10
10
4
... and so on.
I need to replace the multiple rows of 10 with just a single 10, like so.
0
10
14
6
10
6
...
I know unique doesn't work as I can't put a condition it to work between two rows that don't have 10. So any help would be greaty appreciated. Thanks in advance!
Kahar
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!