Matlab neural network pattern recognition test, error: Input 1 size does not match net.inputs{1}.size

hello,
I trained a network using nprtool.
with 180 input, 30 hiddenlayers and 10 target.
my input and target is binary.
x = 180x841
t = 10x841
after that, i used that network for testing (GUI), here my code :
load target
t=target4 %is the same target i used for trained 10x841
x=newinput %here is the new input 1x841
load net
y = net(x);
e = gsubtract(t,y);
performance = perform(net,t,y)
tind = vec2ind(t);
yind = vec2ind(y);
percentErrors = sum(tind ~= yind)/numel(tind);
and always error :
"error: Input 1 size does not match net.inputs{1}.size"
can anyone help me, what should i do ?
thx before

Answers (0)

Asked:

on 14 Jan 2020

Community Treasure Hunt

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

Start Hunting!