Borrar filtros
Borrar filtros

comparing the missing value

2 visualizaciones (últimos 30 días)
Anusha
Anusha el 26 de Abr. de 2014
Respondida: Azzi Abdelmalek el 26 de Abr. de 2014
I have a vetor
a= [3 4 5 1 9 2 0]
b= [4 0 5 9 1 2]
b matrix miss value
compare two matrix..
The missing value added to the b from a

Respuestas (2)

pietro
pietro el 26 de Abr. de 2014
Editada: pietro el 26 de Abr. de 2014
Here one solution:
a= [3 4 5 1 9 2 0];
b= [4 0 5 9 1 2];
b=b(find(ismember(a,intersect(a,b))==0))

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Abr. de 2014
a= [3 4 5 1 9 2 0]
b= [4 0 5 9 1 2]
out=setdiff(a,b)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by