How to alter the dimensions of a cell array?

6 次查看(过去 30 天)
Hi, I am trying to alter the dimensions of my array so it meets the requirements for training of a neural network. At the moment, the variable 'Signals_v' is a 42 x 1 cell array with the following components. Each double represents a separate array with the dimesions n x 900, 42 of which I have concatenated to create 'Signals_v'. How do I change these dimensions to effectively split up each of those doubles so that the dimensions of the cell array are instead 2243 x 1 with 1x900 doubles? Any suggestions would be greatly appreciated, thanks in advance.
{ 74×900 double}
{ 66×900 double}
{ 65×900 double}
{101×900 double}
{ 77×900 double}
{ 56×900 double}
{ 93×900 double}
{ 65×900 double}
{ 75×900 double}
{ 67×900 double}
{ 84×900 double}
{ 98×900 double}
{ 57×900 double}
{ 55×900 double}
{ 54×900 double}
{ 61×900 double}
{ 76×900 double}
{ 79×900 double}
{ 77×900 double}
{ 85×900 double}
{ 59×900 double}
{ 76×900 double}
{ 60×900 double}
{ 53×900 double}
{ 75×900 double}
{ 50×900 double}
{ 76×900 double}
{ 11×900 double}
{ 19×900 double}
{ 14×900 double}
{ 11×900 double}
{ 31×900 double}
{ 11×900 double}
{ 8×900 double}
{ 8×900 double}
{ 13×900 double}
{ 52×900 double}
{ 4×900 double}
{ 76×900 double}
{ 35×900 double}
{ 30×900 double}
{ 6×900 double}
How do I change these dimensions such that the cell array instead contains {1 x 900} doubles?
  2 个评论
Cai Chin
Cai Chin 2020-12-28
With this one, I am unsure as to how to separate the individual arrays comprising the cell array so the cell array has doubles with dimensions of 1x900 instead of 42x900, etc., but with the other question, I was not sure how to add another dimension to the doubles comprising the cell array

请先登录,再进行评论。

采纳的回答

Matt J
Matt J 2020-12-28
Signals_v=num2cell(cell2mat(Signals_v),2);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by