converting a 3d data into 2d

9 ビュー (過去 30 日間)
Talha Khan
Talha Khan 2015 年 5 月 25 日
編集済み: Azzi Abdelmalek 2015 年 5 月 25 日
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 件のコメント
Stephen23
Stephen23 2015 年 5 月 25 日
The general solution to this is to use reshape.

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 5 月 25 日
編集済み: Azzi Abdelmalek 2015 年 5 月 25 日
if a is your array
out=a(:)'
You can also use reshape for more general cases

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 5 月 25 日
squeeze()

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by