MATLAB: How to Subtract a matrix from another matrix of different size

subtract

a = [2 3; 8 9; 88 90; 4 8]; b = [8 9]; I want c = [2 3; 88 90; 4 8];
1. I tried a-b, but that gives me error due to different size of matrix.
2. If I apply a(b) =[]; that would give me result, but it will be inefficient when b is larger in size.

Best Answer

setdiff(a,b,'rows')