MATLAB: I have a column array and i want to subtract each row by the first row and save.please help me in doing this

.

i have a column array and i want to subtract each row by the first row and save.please help me in doing this

Best Answer

Try this:
Array = randi(9, 5, 4); % Create Data
Out = Array - Array(1,:); % Subtract First Row From All Rows