How to stack arrays into a matrix
古いコメントを表示
Hi,
This sounds like it should be really easy, but I can't figure out a way to do it without a loop. I want to avoid loops as I am working with large matrices and speed is important.
I have a 1xm array which I'd like to stack into a nxm matrix. Is there a quick and easy way to do it without a loop?
Thank you!
3 件のコメント
Walter Roberson
2020 年 12 月 31 日
You have a (single) 1xm array? If you need it to be nxm then
repmat(TheArray, n, 1)
France Poirier
2020 年 12 月 31 日
France Poirier
2020 年 12 月 31 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!