Convert matrix from 3d to 4d?

How to convert a matrix from size 120*120*20000 to 120*120*1*20000? so I can use this data in CNN because I cant use it in the current form

 採用された回答

Stephen23
Stephen23 2023 年 11 月 29 日

0 投票

Where M is your array:
N = permute(M,[1,2,4,3])

その他の回答 (0 件)

カテゴリ

質問済み:

M
M
2023 年 11 月 29 日

回答済み:

2023 年 11 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by