Hi, what I want to do is replace a single value in the 201X201 identity matrix to form a transformation matrix. I know how to form the identity matrix, but im having trouble figuring out how to replace a value. I want to replace the zero in the 201st row and 1st column with a 240. I know this probably has a an easy solution, but any help is appreciated, thanks!
MATLAB: Replace A single element of matrix
MATLABmatrix manipulation
Related Question
- I have an all zero matrix ‘a’ of size m x n. In a new 2 column matrix ‘b’ I have the indices where I should replace the zero in ‘a’ with 1. Is there a way to do this without a ‘for’ loop? The m,n > 500..
- How to generalize the size of identity matrix as that of any size of input matrix
- Determing if number is in row of matrix
- Changing some elements of a matrix.
- Can two 201×1 arrays be added in matrix multiplication way to produce a 201×201 matrix
- Change data from cell array to a matrix
Best Answer