convert into 4D array data

Hello, I have a 500 x 16384 matrix. where each row represents a sensor info i.e. 1 x 16384.I need to change each row and arrange it to 4D array data something like 128-by-128-by-1-by-500 (something similar to digitTrain4DArrayData). How can i do the conversion and arrangement?

2 个评论

I would suggest using the reshape command:
doc reshape
Have a look on reshape

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by