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

3 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by