Conditional Statements Between Two Arrays
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nathaniel Wolff
el 11 de Dic. de 2019
Comentada: Nathaniel Wolff
el 19 de Ag. de 2020
I am trying to compare each value between two large arrays then store true values as another array. What do I type?
2 comentarios
Respuesta aceptada
Ruger28
el 11 de Dic. de 2019
a = 1:100;
b = 1:2:100;
c = ismember(a,b); % index of values of array a inside of array b
d = a(c); % the values inside of a that are in b
Más respuestas (0)
Ver también
Categorías
Más información sobre Cell 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!