The following Matlab project contains the source code and Matlab examples used for tracking yellow color. When we are using RGB color space,we can differentiate between the red,blue and green color. But when comes to detecting yellow color, this code will detect yellow color in RGB color space. I hopw this would help.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.