MATLAB Answers

0

how to decide target vector for following code?

Asked by jayamala pakhare on 12 Jul 2018 at 10:37
Latest activity Commented on by jayamala pakhare on 14 Jul 2018 at 6:46

featurevector is of size 3*20(extracted H,S,V values for 20 images)

t=ones(3,20);
[x] = featureVector;
net = patternnet(10);
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,t,y);
classes = vec2ind(y);

  5 Comments

All your targets are 1.....the way code called is correct but not the input.

which input is wrong ?whether feature vector or input to network ?

Sign in to comment.

0 Answers