Effacer les filtres
Effacer les filtres

Removing repeating data points

1 vue (au cours des 30 derniers jours)
Matt
Matt le 26 Nov 2012
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?

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 26 Nov 2012
A = randi(10,3)
B = randi(10,5)
A(ismember(A(:),B(:))) = nan

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by