How to delete duplicate values from an array or a vector
显示 更早的评论
How to delete duplicate values from an array or a vector
Hi, how do I delete duplicate values from an array or a vector provided that unique function is not used and that the place of the value does not remain empty or zero. The result is like this
a=[1 2 3 6 1 3 1];
a=[1 2 3 6]
b=[1 1 3
3 4 5
4 9 1];
b=[1 3 4 5 9]
5 个评论
Matt J
2021-2-10
Since it is a homework problem, show us what you've done and where you are stuck.
KALYAN ACHARJYA
2021-2-10
编辑:KALYAN ACHARJYA
2021-2-10
@Matt J Exactly, so valid Question
:)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!