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 Comments

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

Sign in to comment.

Answers (0)

Asked:

on 11 Jun 2018

Commented:

on 11 Jun 2018

Community Treasure Hunt

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

Start Hunting!