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

14 Ansichten (letzte 30 Tage)
balaji S
balaji S am 1 Apr. 2020
Beantwortet: Walter Roberson am 1 Apr. 2020
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 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])

Weitere Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by