Change from 3d array to 4d array

12 ビュー (過去 30 日間)
Abdulrahman Almashjary
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 Center および File ExchangeResizing 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