For c classes: Create two matrices from N pairs of I-dimensional input vectors and c-dimensional {0,1} unit vector targets. The 1 in the target vectors indicates the class index integer (1:c). The relationship between the target matrix and the class index row vector is given by
target = ind2vec(classindices)
classindices = vec2ind(target)
Use patternnet or the obsolete (but still available) newpr.
See the examples in the help and doc documentation, e.g.,
help patternnet
doc patternnet
Also see some of my posts in the NEWSGROUP and ANSWERS:
greg patternnet
Hope this helps.
Thank you for formally accepting my answer
Greg
Best Answer