필터 지우기
필터 지우기

3D matrix in to a 4D matrix

조회 수: 3 (최근 30일)
Hashini Wanniarachchi
Hashini Wanniarachchi 2018년 8월 1일
댓글: Hashini Wanniarachchi 2020년 3월 18일
I have a matrix D=104*242*64. This is the data for one subject. I have 10 subjects. I need to make it to a matrix D1= 104*242*64*10. How can I add data to matrix D to make it to D1? Can anyone help?
  댓글 수: 2
Adam
Adam 2018년 8월 1일
Data from where?
D1(end,end,end,64) = 0;
will resize your matrix to this size that you can fill in, but there may be better methods depending where your data will come from, e.g.
D1 = cat( 4, D, otherD );
would concatenate another matrix, otherD, of the same size as D along the 4th dimensions to make it 104*242*64*2
Hashini Wanniarachchi
Hashini Wanniarachchi 2020년 3월 18일
Thank you!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by