Converting the Cell array Contents to Matrix

Hi;
I have a 15x10 cell with each cell as 22500x1. I want to convert the contents of the cell into a 22500x150 matrix. Each cell data represents a column vector of a gray scale 150x150 image. I have attached the screenshot of the cell. I would appreciate your help in this regard.
Thanks you

 採用された回答

Stephen23
Stephen23 2018 年 11 月 6 日
編集済み: Stephen23 2018 年 11 月 6 日

0 投票

Where C is your cell array:
[C{:}]
or
horzcat(C{:})
Depending on the required order you might need to transpose C beforehand.

その他の回答 (0 件)

カテゴリ

製品

リリース

R2016a

タグ

質問済み:

2018 年 11 月 5 日

編集済み:

2018 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by