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

조회 수: 2 (최근 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개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by