How to convert the 1d into 3d data matrix?

4 views (last 30 days)
Hi, how to convert 36000000 list data into 3D matrix data?
I simulated the matrix mesh scoring. the output results are showing like the listed value I don't know how to convert 3d data format.
my simulation mesh scoring voxel size was 300 x 300 x 400. the output is 36000000 listed data.

Accepted Answer

Walter Roberson
Walter Roberson on 1 Apr 2020
reshape(TheList, 300, 300, 400)
Depending on how the data was written, you might possibly need to use
permute(reshape(TheList, 300, 300, 400), [2 1 3])
or
permute(reshape(TheList, 400, 300, 300), [2 3 1])
or
permute(reshape(TheList, 400, 300, 300), [3 2 1])

More Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!