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 -1 -1 -1 1;
1 -1 -1 -1 -1 -1 -1;
1 -1 -1 -1 -1 -1 -1;
1 -1 -1 -1 -1 -1 -1;
1 -1 -1 -1 -1 -1 1;
-1 1 -1 -1 -1 1 -1;
-1 -1 1 1 1 -1 -1];
I have to recognize these patterns with artificial neural network.
I am new in Matlab. Please help!
I need to divide this data into 2 groups.
The first group A1, B1, C1 as training data. The second group A2, B2, C2 used to validate/test the network.
Example : if I select A1 then the output must display 'A', if I select B1 then the output must display 'B', if I select A2 then the output must display 'A'.
. . # # . . .
. . . # . . .
. . . # . . .
. . # . # . .
. . # . # . . => This pattern should be recognized as A
. # # # # # .
. # . . . # .
. # . . . # .
# # # . # # #
In result program, we must explain epochs from start to finish , which Learning Rate = 1 And Threshold Value = 0.5
How do I do that?
Thanks in advance!
Network type is perceptron

Best Answer

Start with MATLAB examples
help fitnet % regression/curve-fitting
help patternnet % classification/pattern-recognition
help nndata
Then submit failed code with comments and/or error messages
Hope this helps.
Greg