converting a 3d data into 2d

8 visualizzazioni (ultimi 30 giorni)
Talha Khan
Talha Khan il 25 Mag 2015
Modificato: Azzi Abdelmalek il 25 Mag 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

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 25 Mag 2015
Modificato: Azzi Abdelmalek il 25 Mag 2015
if a is your array
out=a(:)'
You can also use reshape for more general cases

Più risposte (1)

Walter Roberson
Walter Roberson il 25 Mag 2015
squeeze()

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by