Removing repeating data points
显示 更早的评论
Ive got two matrices of different sizes; matrix A is smaller than Matrix B
Some of the numbers in Matrix A are in Matrix B i want to remove these, how can i do this?
回答(1 个)
Andrei Bobrov
2012-11-26
A = randi(10,3)
B = randi(10,5)
A(ismember(A(:),B(:))) = nan
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!