Converting 2D matrix to 3D matrix

4 visualizaciones (últimos 30 días)
saswati bhattacharya
saswati bhattacharya el 28 de Feb. de 2018
Editada: Walter Roberson el 6 de Mzo. de 2018
I have a 3529 x 2 2D matrix. how can I convert it into a 3D matrix? please help.
  2 comentarios
Guillaume
Guillaume el 28 de Feb. de 2018
More information required. Why do you want it to be 3D? What should the size of the 3D matrix be? Which elements of the 2D matrix should move to the 3rd dimension?
Walter Roberson
Walter Roberson el 28 de Feb. de 2018
What size of output are you expecting?

Iniciar sesión para comentar.

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 28 de Feb. de 2018
out = reshape(your_matrix,size_of_your_new_3D_matrix)
  7 comentarios
saswati bhattacharya
saswati bhattacharya el 6 de Mzo. de 2018
Editada: Walter Roberson el 6 de Mzo. de 2018
Thank you
I have a 3528 X 2 matrix.. it is a 2D matrix.. now i want to convert it into 3D matrix.. and then i want to see my data as 3D data..this is the arrangement of data..
10.0083592395139 77.9930054460466
10.0253628539736 55.3153345652150
10.0423676723994 72.9691320996063
Guillaume
Guillaume el 6 de Mzo. de 2018
You have yet to explain what any of these numbers represent so we have absolutely no idea how to convert your 2D matrix to 3D.
You really really really need to explain a lot better what it is you want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by