Whhat is the best way to remove repitions of two or three vectors?

1 次查看(过去 30 天)
suppose I have a=[9 10 6 3 7],b=[1 9 6 7 8], I want to remove the repartitions so that:a=[9 10 6 3 7],b=[1 0 0 0 8]

采纳的回答

Walter Roberson
Walter Roberson 2014-4-12
b(ismember(b,a)) = 0;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by