converting a 3d data into 2d

12 vues (au cours des 30 derniers jours)
Talha Khan
Talha Khan le 25 Mai 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 commentaire
Stephen23
Stephen23 le 25 Mai 2015
The general solution to this is to use reshape.

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 25 Mai 2015
Modifié(e) : Azzi Abdelmalek le 25 Mai 2015
if a is your array
out=a(:)'
You can also use reshape for more general cases

Plus de réponses (1)

Walter Roberson
Walter Roberson le 25 Mai 2015
squeeze()

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by