Change from 3d array to 4d array

6 visualizaciones (últimos 30 días)
Abdulrahman Almashjary
Abdulrahman Almashjary el 15 de Ag. de 2021
Comentada: Abdulrahman Almashjary el 15 de Ag. de 2021
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 comentarios
James Tursa
James Tursa el 15 de Ag. de 2021
Are you asking how to interpolate your data?
Abdulrahman Almashjary
Abdulrahman Almashjary el 15 de Ag. de 2021
no sir, how can I change the 2nd dimension to become 2 different dimensions

Iniciar sesión para comentar.

Respuestas (1)

Matt J
Matt J el 15 de Ag. de 2021
Editada: Matt J el 15 de Ag. de 2021
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,

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by