Matlab 2012b error in neural network Non-singleton dimensions of the two input arrays must match each other.

2 次查看(过去 30 天)
i wrote my script to split dataset into XTrain, YTrain, XTest and YTest.
the dimensions are equal for all matrix example sample size e.g. size is following for above matrix
XTrain = 25 X 256 (double)
YTrain = 11 X 256 (double)
XTest = 25 X 256 (double)
YTest = 25 X (double)
my code is following
setdemorandstream(491218382);
net = patternnet(10);
[net,tr] = train(net, XTrain, YTrain);
nntraintool;
plotperform(tr);
testY = net(XTest);
The training part is good but when the last line is called the error is thrown instantly
Error using bsxfun
Non-singleton dimensions of the two input arrays must match each other.
I have already searched and found many explanations but i can't understand them specialy the solution mentioned in this Link
Could any body please explain the core anatomy behind this problem in the context of my spliting of dataset

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by