Duplicate the value of a cell for other cells in a matrix
Mostrar comentarios más antiguos
Hello everyone,
I have a large-size matrix A with 100 rows and 1000 columns. I was wondering how I can duplicate the value of a single cell to some other cells. For example, lets assume A(2,5)=4. Then, how can I have the same value for other 1000 cells of matrix A? These 1000 cells can be of any row and column.
For this sake, my main concern is to speed up the run and avoid as loops as possible.
Any help or remark is highly appreciated! Thank you!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!