A={[10,11,10,7],[7,8,7,6],[11,10,9,9],[7,5,11,5];[9,8,6,11],[10,6,9,7],[6,12,8,9],[7,10,12,9];[10,7,12,6],[8,11,7,5],[8,5,9,9],[10,10,10,10]};B= [1,1,0,1;0,1,1,1;1,0,1,1;0,1,1,0];[a,b]=find(~B);for i=1:numel(a) A{a(i),b(i)}=[100 100 100 100]; end
Is there any other ways instead of using for loop?
Best Answer