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

2 vues (au cours des 30 derniers jours)
Luisa
Luisa le 14 Nov 2022
Commenté : Luisa le 15 Nov 2022
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!

Réponse acceptée

cr
cr le 14 Nov 2022
cat(3,m1,m2,m3,m4...)
concatenates m1,m2,... along third dimension.
  1 commentaire
Luisa
Luisa le 15 Nov 2022
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by