The question above.
MATLAB: 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..
matrix array
Related Question
- Replace A single element of matrix
- Removing zero element rows in a m×n matrix
- Advanced logical matrix indexing
- Keep m*n structure after indexing a matrix
- How to update matrix values using algorithm based on position
- Remove empty cells (of a m*n cell)
- Diagonal displacement of matrix into another matrix
- Lsqlin: C is M-by-N. Is M=N possible
Best Answer