MATLAB: Matrix manipulations of columns MATLABmatrixmatrix arraymatrix manipulation How can I replace all even columns of matrix A by columns of ones. pls note that matrix A is A=random('norm',3,0.2,100,100) thx Best Answer A=random('norm',3,0.2,100,100)A(:,2:2:end)=ones(size(A(:,2:2:end))) Related SolutionsMATLAB: Matrix manipulations of columns A(:,5)=zeros(size(A,1),1) MATLAB: Replacing components of a matrix %your matrix is MisBetween = (M >= 2.9) & (M <= 3.2);M(isBetween) = -1 Related QuestionMatrix manipulation and componentsHow to assign values to 100 by 2 matrixHello, I want to merge a big matrices row by rowChange even column values onlyCreate a matrix with unique coloms and rowsGenerating a random binary matrix with conditions
Best Answer