>> A = magic(4) A = 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1 >> b = [ 2 3]; >> A(b,:) = [] A = 16 2 3 13 4 14 15 1
More on manipulating 1-D array
>> A = magic(4) A = 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1 >> b = [ 2 3]; >> A(b,:) = [] A = 16 2 3 13 4 14 15 1
More on manipulating 1-D array