MATLAB: Matrix operation

matrix

sir how to remove a specific element in an row or column matrix that is in a matrix a=[1 3 3 4] how to remove 4Th element so that i need to have answer a=[1 3 3]

Best Answer

a = a(1:3); %glass half full
or
a(4) = []; %glass half empty