Concatenate correlation matrices/tables across subjects to one 3D matrix

4 ビュー (過去 30 日間)
Luisa
Luisa 2022 年 11 月 14 日
コメント済み: Luisa 2022 年 11 月 15 日
I have n correlation matrices of the same size (400x400) and the same variables which are stored as .mat tables and I want to create one 3D matrix across all of my n subjects. I tried to concatenate them but it does not work.
Thank you for helping!

採用された回答

cr
cr 2022 年 11 月 14 日
cat(3,m1,m2,m3,m4...)
concatenates m1,m2,... along third dimension.
  1 件のコメント
Luisa
Luisa 2022 年 11 月 15 日
Thank you. That is what I've tried before and it did not work. But I found the problem: I had to transform the mat tables to arrays and now it works.

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

その他の回答 (0 件)

カテゴリ

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by