Duplicate the value of a cell for other cells in a matrix
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!