converting a 3d data into 2d

8 Ansichten (letzte 30 Tage)
Talha Khan
Talha Khan am 25 Mai 2015
Bearbeitet: Azzi Abdelmalek am 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 Kommentar
Stephen23
Stephen23 am 25 Mai 2015
The general solution to this is to use reshape.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 25 Mai 2015
squeeze()

Kategorien

Mehr zu Data Type Conversion 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