Hi,
I understand you are facing an error when passing a "cell array" as input to the Long Short Term Memory (LSTM) Model.
According to given code, the input layer expects a sequence of features of dimension 55. Ensure that each element in the input array i.e "XTrain" has dimension of (55 × 1) and cell array has the dimension of (N × 1), where N is the number of sequences.
You may also convert the cell array to matrix using the below code.
A = cell2mat(C) % C is the cell array
The variable "numResponses" has value 1, which means that the output layer is expecting each output response to have dimension of 1, but each element in "YTrain" has a dimension of 55. Set the value of "numResponses" to 55.
Refer to the documentation link to know more about LSTM Models.