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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!