Projects Directory : change code from matlab to c++ - Change color according to sample