Duplicate the value of a cell for other cells in a matrix
Afficher commentaires plus anciens
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!
3 commentaires
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!