Change from 3d array to 4d array
显示 更早的评论
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
2021-8-15
Are you asking how to interpolate your data?
Abdulrahman Almashjary
2021-8-15
回答(1 个)
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,
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!