There are two tables. Table "A" is a subset of "B". How do you find the rows in "A" and "B" that have the same "X" and "Y" variables and replace those rows in "B" with those rows in "A"?
>> var1 = {'a', 'b', 'c' 'd' 'e'}';>> x1 = [5 4 3 2 1]';>> y1 = [9 8 5 4 1]';>> var2 = {'Temp', 'Temp', 'Temp', 'Temp', 'Temp'}';>> x2 = [1 2 3 4 5]';>> y2 = [1 3 5 7 9]';>> A = table(var1,x1,y1);>> B = table(var2,x2,y2);
Best Answer