Here's an example code for creating and training a simple feedforward neural network in MATLAB for color recognition from a given RGB image:
main.m1035 chars44 lines
Note that this is just a simple example and there are many ways to improve the accuracy and efficiency of the neural network for color recognition.
gistlibby LogSnag