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 DataOut = Array - Array(1,:); % Subtract First Row From All Rows Related SolutionsMATLAB: Hi , i have a matrix and need to extract the column in this way , thank you idx= [ 1 5 9 13 ];A(:,idx) % 4 X 4A(:,setdiff(1:size(A,2),idx)) % 4 X 12 MATLAB: Rows a = rand(1000,5);b = min(a,[],2); Related QuestionSubtracting the first element of each row from the rest of the rowSubtract row from previous rowHow to store elements from 2 arrays into another arrayFinding Duplicate rowsComparing 2 columns of a matrixMinimum row value and return the row
Best Answer