Change from 3d array to 4d array

조회 수: 6 (최근 30일)
Abdulrahman Almashjary
Abdulrahman Almashjary 2021년 8월 15일
댓글: Abdulrahman Almashjary 2021년 8월 15일
hello, I have a 3d array of size (M x N x L) & I want to change it to size (M x P x Q x L)
Where P&Q aren't product of N. For example (129*4*2) or anything instead of 4, to (129*349*1199*2)
it has to be changed to spatial dimensions 349*1199
  댓글 수: 2
James Tursa
James Tursa 2021년 8월 15일
Are you asking how to interpolate your data?
Abdulrahman Almashjary
Abdulrahman Almashjary 2021년 8월 15일
no sir, how can I change the 2nd dimension to become 2 different dimensions

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

답변 (1개)

Matt J
Matt J 2021년 8월 15일
편집: Matt J 2021년 8월 15일
Where P&Q aren't product of N.
One way might be to reshape it so that P*Q=N and then resize it, using imresizen() for example,

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by