checking for number of matching columns on each row of a tabl

3 visualizaciones (últimos 30 días)
ma sd
ma sd el 27 de Jul. de 2020
hi,
I have two tables each table has multiple columns.
I wannt to check the values from every row of certain columns (eg coulmns 2,4,7) from table a against all the rows of table b
I did it this way
for i=1:length(a) match=ismember(b(:,[2 4 7]),a(i,[2 4 7]) end
is there a way to do it without for? its making my runtime much longer than it should be

Respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by