フィルターのクリア

copy different cell values to a single cell

1 回表示 (過去 30 日間)
Elysi Cochin
Elysi Cochin 2016 年 1 月 14 日
回答済み: Guillaume 2016 年 1 月 14 日
i have 3 cell of size (c1 = 1 X 5; c2 = 1 X 10; c3 = 1 X 15); i wanted to copy all the cell values to a single cell of size (c = 1 X 40)
please tell me how to do it

採用された回答

Guillaume
Guillaume 2016 年 1 月 14 日
Simple:
c = {zeros(1, 5); ones(1, 10); zeros(1, 15)}; %for example
newc = [c{:}]
This uses the expansion of cell arrays into a comma separated list

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by