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

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!