converting a 3d data into 2d

8 visualizaciones (últimos 30 días)
Talha Khan
Talha Khan el 25 de Mayo de 2015
Editada: Azzi Abdelmalek el 25 de Mayo de 2015
hi all,
I had a 3d array <1x1x146226> I want to convert this array into <1x146226> to plot it. Can anyone tell me how to do it.
Thanks and humble Regards
  1 comentario
Stephen23
Stephen23 el 25 de Mayo de 2015
The general solution to this is to use reshape.

Iniciar sesión para comentar.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 25 de Mayo de 2015
Editada: Azzi Abdelmalek el 25 de Mayo de 2015
if a is your array
out=a(:)'
You can also use reshape for more general cases

Más respuestas (1)

Walter Roberson
Walter Roberson el 25 de Mayo de 2015
squeeze()

Categorías

Más información sobre Data Type Conversion 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