How can I put a double array of random dimension inside a cell array?

1 回表示 (過去 30 日間)
Antony Pranzetti
Antony Pranzetti 2017 年 6 月 2 日
回答済み: Walter Roberson 2017 年 6 月 2 日
I'm going to make an example, I have a double array A [2501 x 4000] and a cell array B [10 x 1] of empty cells. I want to have that B(1,1) = A so that the first cell of B will become A. However, when I tried like above, I obtained this error "Conversion to cell from double is not possible." How can I solve this?

採用された回答

Walter Roberson
Walter Roberson 2017 年 6 月 2 日
B{1,1} = A
or
B(1,1) = {A}

その他の回答 (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