After running a script the product is three separately named 1x1 cells that open to 77x1 doubles, when loading it how do I skip the cell and go to the matrix immediately for all three variables?

1 回表示 (過去 30 日間)
After running a script the product is three separately named 1x1 cells that open to 77x1 doubles, when loading it how do I skip the cell and go to the matrix immediately for all three variables? I am trying to keep the file name the same just convert the cells to doubles so I can open them and combine with other doubles.

採用された回答

Star Strider
Star Strider 2017 年 11 月 27 日
See if this does what you want:
C{1} = rand(77,1); % Create Data
C{2} = rand(77,1); % Create Data
C{3} = rand(77,1); % Create Data
A = cell2mat(C); % Matrix Output

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by