フィルターのクリア

How can I concatenate a large number of matrices?

2 ビュー (過去 30 日間)
Gianluca Ligresti
Gianluca Ligresti 2019 年 1 月 10 日
編集済み: Stephen23 2022 年 2 月 23 日
Hi all,
I have N distinct matrices with the same number of columns but a different number of rows (it changes dinamically in my code).
I used this type of function to generate my matrices:
fun = @(k) A(k,:) - A(k+1:end,:)
where A is a starting matrix, fun(1) contains the differences between row1 of A and all the subsequent ones, fun(2) contains the differences between row2 and the subsequent ones and so on, up to fun(N).
Now, I would like to concatenate my resulting matrices so that I have a final matrix given by
[fun(1); fun(2); fun(3); ... ; fun(N)]
Is there a way to do this? Thanks a lot

採用された回答

Stephen23
Stephen23 2019 年 1 月 10 日
編集済み: Stephen23 2022 年 2 月 23 日
  1 件のコメント
Gianluca Ligresti
Gianluca Ligresti 2019 年 1 月 11 日
Thanks a lot, it works perfectly

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by