MATLAB: How can i change a position of a matrix to 1 matrixmatrix manipulation i have a matrix a=rand(1,10). now i want to change 2,4,6 position of matrix to 1. how can i do that…. plz plz plz help me Best Answer a([2,4,6])=1 Related SolutionsMATLAB: How to get the secondary diagonal of a matrix diag(fliplr(A)) MATLAB: How to sum only few values in a diagonal matrix Rida, use sum(diag(A(1:3,1:3))) Related QuestionHow to random -1 and 1How can i change the unit of x axisLogical -1 = Logical 1How to became the Tridiagonal matrixReverse matrix positionReset xlabel position
Best Answer