Borrar filtros
Borrar filtros

Removing repeating data points

1 visualización (últimos 30 días)
Matt
Matt el 26 de Nov. de 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?

Respuestas (1)

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

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by