converting a 3d data into 2d

8 次查看(过去 30 天)
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

采纳的回答

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 CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by