Borrar filtros
Borrar filtros

Compare two different set of matrix?

1 visualización (últimos 30 días)
Matlab111
Matlab111 el 1 de Feb. de 2015
Respondida: Azzi Abdelmalek el 1 de Feb. de 2015
How to compare two different set of matrix like this
a=[81
82
93
102
57
98];
b=[81
20
43];
now i want to compare this two matrix 'b' and 'a', if matrix 'b' is matched with 'a' than, it should not display that value which is matched, only it should display remaining value of 'b' matrix. The answer should be like this..
c= [20
43];

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Feb. de 2015
setdiff(b,a)

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by