Matlab “Index Exceeds Matrix Dimensions” neural network function error?

Up vote 0 down vote favorite share g+ share fb share tw.

I've got two datasets, which I load from a csv file, and split them into X and T. X (3x5000) double T (1x5000) double I'm trying to configure this function, but I can't mathworks.co.uk/help/toolbox/nnet/ref/layrecnet.html X has 3 features and 5000 examples. T has 1 feature and 5000 examples.

For an example the target is feature 1 20 steps ahead. So basically X(1,21) == T(1) X,T = simpleseries_dataset; This works perfectly, in this case, I have 1x100, 1x100. If I use my own data set, however, I get this: X = data(:,1:3)'; T = data(:,4)'; net = layrecnet(1:2,10); Xs,Xi,Ai,Ts = preparets(net,X,T);?

Index exceeds matrix dimensions. Error in ==> preparets at 273 ti = tt(:,FBS+((1-net. NumLayerDelays):0)); I don't understand, what am I doing wrong?

UPDATE I've noticed that my data set is T (1x5000) double while the example dataset is T (1x100) cell. What's the difference between double and cell? Matlab neural-network matlab-toolbox link|improve this question edited 6 mins ago asked 49 mins agobizso091,264527 66% accept rate.

1 I can't see anything obvious. Maybe try with X = data(:, 1)'; and see if you still get an error? – Richante 22 mins ago @Richante same error.

I also did X = 1:100; and T = 1:100;, which is the same dimensions as the example dataset, and get the same error. Could be double vs cell distinction? – bizso09 7 mins ago.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions